Index: output/bt_program23.icode
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.icode	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.icode	(working copy)
@@ -97,8 +97,8 @@
  00000096  0x00000097 beq  0x0000000f , 0x0000011e 
  00000097  0x00000098 rtn 
  00000098  0x0000009b call  0x0000243a 
- 00000099  0x0000009d fetch  0x00000001 , 0x00000bec 
- 00000100  0x0000009e beq  0x00000003 , 0x0000006c 
+ 00000099  0x0000009d fetch  0x00000001 , 0x000009f6 
+ 00000100  0x0000009e bbit0  0x00000002 , 0x0000006c 
  00000101  0x0000009f call  0x0000243e 
  00000102  0x000000a0 call  0x000000e3 
  00000103  0x000000a1 call  0x0000376b 
@@ -109,7 +109,7 @@
  00000108  0x000000a9 arg  0x0000000d , 0x00000007 
  00000109  0x000000aa call  0x00007de9 
  00000110  0x000000ab nbranch  0x0000006a , 0x00000034 
- 00000111  0x000000ac setarg  0x00000004 
+ 00000111  0x000000ac setarg  0x00000014 
  00000112  0x000000ad store  0x00000002 , 0x00004993 
  00000113  0x000000af fetch  0x00000002 , 0x00004993 
  00000114  0x000000b0 branch  0x00000079 , 0x00000034 
Index: output/bt_program23.list
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.list	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.list	(working copy)
@@ -118,8 +118,8 @@
 :      000154 p_dongle_auto_bind:
 0x62 000155 call g24_mode_switch_init 
 :      000156 p_dongle_auto_bind_loop:
-0x63 000157 fetch 1 ,mem_usb_state 
-0x64 000158 beq usb_sleep ,p_dongle_sleep_process 
+0x63 000157 fetch 1 ,mem_usb_status 
+0x64 000158 bbit0 usb_status_nak ,p_dongle_sleep_process 
 0x65 000159 call g24_mode_switch_bind_work 
 0x66 000160 call p_g24_mode_switch_bind_search 
 0x67 000161 call dongle_work_mode_auto 
@@ -132,7 +132,7 @@
 0x6c 000169 arg timer_sleep_wait ,queue 
 0x6d 000170 call timer_check 
 0x6e 000171 nbranch p_dongle_auto_bind_loop_next ,blank 
-0x6f 000172 setarg 4 
+0x6f 000172 setarg 20 
 0x70 000173 store 2 ,mem_dg_sleep_search_count 
 :      000174 p_dongle_sleep_process_loop:
 0x71 000175 fetch 2 ,mem_dg_sleep_search_count 
Index: output/bt_program23.meta
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.meta	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.meta	(working copy)
@@ -154,8 +154,8 @@
 p_dongle_auto_bind:
 	call g24_mode_switch_init
 p_dongle_auto_bind_loop:
-	fetch 1,mem_usb_state
-	beq USB_SLEEP,p_dongle_sleep_process	
+	fetch 1,mem_usb_status
+	bbit0 USB_STATUS_NAK,p_dongle_sleep_process	
 	call g24_mode_switch_bind_work
 	call p_g24_mode_switch_bind_search
 	call dongle_work_mode_auto
@@ -169,7 +169,7 @@
 	arg TIMER_SLEEP_WAIT,queue
 	call timer_check
 	nbranch p_dongle_auto_bind_loop_next,blank
-	setarg 4
+	setarg 20
 	store 2,mem_dg_sleep_search_count
 p_dongle_sleep_process_loop:
 	fetch 2,mem_dg_sleep_search_count
Index: output/bt_program23.rom
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.rom	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/bt_program23.rom	(working copy)
@@ -97,8 +97,8 @@
 11000000000001111000000100011110
 00100000011000000000000000000000
 00100000010000000010010000111010
-01101111111000001000101111101100
-11000000000000011000000001101100
+01101111111000001000100111110110
+11000011000000010000000001101100
 00100000010000000010010000111110
 00100000010000000000000011100011
 00100000010000000011011101101011
@@ -109,7 +109,7 @@
 11011000111000000000000000001101
 00100000010000000111110111101001
 00100100001110100000000001101010
-01011000000000000000000000000100
+01011000000000000000000000010100
 01100111111000010100100110010011
 01101111111000010100100110010011
 00100000001110100000000001111001
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/eeprom.dat	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/eeprom.dat	(working copy)
@@ -402,11 +402,11 @@
 3a
 6f
 e0
-8b
-ec
-c0
+89
+f6
+c3
 01
-80
+00
 6c
 20
 40
@@ -451,7 +451,7 @@
 58
 00
 00
-04
+14
 67
 e1
 49
@@ -2652,8 +2652,8 @@
 20
 16
 74
-ea
-d0
+eb
+eb
 aa
 55
 40
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/flash.dat	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/flash.dat	(working copy)
@@ -402,11 +402,11 @@
 3a
 6f
 e0
-8b
-ec
-c0
+89
+f6
+c3
 01
-80
+00
 6c
 20
 40
@@ -451,7 +451,7 @@
 58
 00
 00
-04
+14
 67
 e1
 49
@@ -2652,8 +2652,8 @@
 20
 16
 74
-ea
-d0
+eb
+eb
 aa
 55
 40
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/program.lis	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/program.lis	(working copy)
@@ -137,8 +137,8 @@
 0062 2040243a call g24_mode_switch_init 
 
 p_dongle_auto_bind_loop:
-0063 6fe08bec fetch 1 ,mem_usb_state 
-0064 c001806c beq usb_sleep ,p_dongle_sleep_process 
+0063 6fe089f6 fetch 1 ,mem_usb_status 
+0064 c301006c bbit0 usb_status_nak ,p_dongle_sleep_process 
 0065 2040243e call g24_mode_switch_bind_work 
 0066 204000e3 call p_g24_mode_switch_bind_search 
 0067 2040376b call dongle_work_mode_auto 
@@ -153,7 +153,7 @@
 006c d8e0000d arg timer_sleep_wait ,queue 
 006d 20407de9 call timer_check 
 006e 243a006a nbranch p_dongle_auto_bind_loop_next ,blank 
-006f 58000004 setarg 4 
+006f 58000014 setarg 20 
 0070 67e14993 store 2 ,mem_dg_sleep_search_count 
 
 p_dongle_sleep_process_loop:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/ramcode.rom	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/output/ramcode.rom	(working copy)
@@ -97,8 +97,8 @@
 c007811e
 20600000
 2040243a
-6fe08bec
-c001806c
+6fe089f6
+c301006c
 2040243e
 204000e3
 2040376b
@@ -109,7 +109,7 @@
 d8e0000d
 20407de9
 243a006a
-58000004
+58000014
 67e14993
 6fe14993
 203a0079
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/program/patch.prog	(revision 4190)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K_LongDeviceName_OS/program/patch.prog	(working copy)
@@ -128,8 +128,8 @@
 p_dongle_auto_bind:
 	call g24_mode_switch_init
 p_dongle_auto_bind_loop:
-	fetch 1,mem_usb_state
-	beq USB_SLEEP,p_dongle_sleep_process	
+	fetch 1,mem_usb_status
+	bbit0 USB_STATUS_NAK,p_dongle_sleep_process	
 	call g24_mode_switch_bind_work
 	call p_g24_mode_switch_bind_search
 	call dongle_work_mode_auto
@@ -143,7 +143,7 @@
 	arg TIMER_SLEEP_WAIT,queue
 	call timer_check
 	nbranch p_dongle_auto_bind_loop_next,blank
-	setarg 4
+	setarg 20
 	store 2,mem_dg_sleep_search_count
 p_dongle_sleep_process_loop:
 	fetch 2,mem_dg_sleep_search_count
