Index: d.bat
===================================================================
--- /YC1308AC/branch/usb/d.bat	(revision 1169)
+++ /YC1308AC/branch/usb/d.bat	(working copy)
@@ -1,5 +1,6 @@
 call do.bat eep
 e pu
+e 8043 00
 e 8070 00000000000000000000
 e 807a 00000000000000000000
 e 8070 3e6c6d   
Index: do.bat
===================================================================
--- /YC1308AC/branch/usb/do.bat	(revision 1169)
+++ /YC1308AC/branch/usb/do.bat	(working copy)
@@ -72,7 +72,7 @@
 ::geneep
 
 cd ..\output
-create_exen.pl 1 1024 64
+..\util\create_exen.pl 1 1024 64
 cd ..
 
 if "%device_option%" equ "mouse" (
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/usb/output/eeprom.dat	(revision 1181)
+++ /YC1308AC/branch/usb/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-5e
-04
+de
+03
 c2
 84
 00
@@ -19,7 +19,7 @@
 c0
 46
 00
-76
+73
 c0
 57
 00
@@ -47,11 +47,11 @@
 c0
 48
 00
-61
+5e
 c0
 4a
 80
-8b
+88
 c0
 54
 80
@@ -171,7 +171,7 @@
 58
 00
 00
-91
+8e
 67
 e1
 48
@@ -235,23 +235,11 @@
 20
 40
 00
-df
+db
 20
 40
 00
-e5
-6f
-e0
-8b
-f9
-2f
-ef
-fe
-02
-24
-40
-80
-ba
+b7
 6f
 e0
 8b
@@ -270,12 +258,12 @@
 b3
 24
 5a
-01
-0c
+00
+ec
 20
 40
 00
-45
+42
 20
 20
 36
@@ -287,11 +275,11 @@
 20
 40
 00
-48
+45
 20
 20
 00
-54
+51
 6f
 e0
 c9
@@ -407,7 +395,7 @@
 c0
 00
 00
-66
+63
 20
 20
 7a
@@ -431,7 +419,7 @@
 c0
 00
 80
-6c
+69
 20
 20
 7a
@@ -443,7 +431,7 @@
 c0
 04
 80
-6f
+6c
 20
 20
 7a
@@ -523,7 +511,7 @@
 20
 40
 00
-71
+6e
 1f
 e6
 7e
@@ -547,7 +535,7 @@
 24
 20
 80
-89
+86
 58
 00
 00
@@ -599,15 +587,15 @@
 20
 40
 00
-97
+94
 20
 40
 00
-9d
+9a
 20
 20
 00
-a4
+a1
 6f
 e0
 c9
@@ -630,8 +618,8 @@
 6b
 20
 20
-01
-01
+00
+e1
 6f
 e0
 c9
@@ -715,7 +703,7 @@
 20
 21
 00
-b6
+b3
 6f
 e1
 c9
@@ -731,7 +719,7 @@
 20
 20
 00
-b7
+b4
 58
 00
 bb
@@ -742,12 +730,12 @@
 86
 20
 40
-01
-06
+00
+e6
 20
 20
-01
-0e
+00
+ee
 6f
 e1
 c9
@@ -764,10 +752,6 @@
 4f
 de
 00
-1f
-f1
-fe
-00
 9d
 e0
 de
@@ -818,8 +802,8 @@
 00
 24
 21
-01
-0e
+00
+ee
 60
 4a
 49
@@ -858,20 +842,20 @@
 00
 20
 22
-81
-0a
+80
+ea
 24
 21
-01
-0e
+00
+ee
 1f
 e6
 7c
 04
 24
 21
-01
-0e
+00
+ee
 1f
 e0
 ff
@@ -890,12 +874,12 @@
 05
 24
 21
-01
-0e
+00
+ee
 20
 20
-01
-12
+00
+f2
 6f
 e1
 c9
@@ -903,7 +887,7 @@
 20
 3a
 00
-a8
+a5
 d8
 40
 bb
@@ -915,131 +899,19 @@
 24
 42
 80
-a8
+a5
 20
 60
 00
 00
-6f
-e1
-c9
-86
-20
-7a
-00
-00
-68
-48
-c9
-91
-18
-40
-84
-02
-98
-4f
-de
-00
-68
-4b
-49
-6b
-18
-46
-7c
-00
-20
-62
-80
-00
-1b
-22
-7e
-00
-20
-40
-7d
-95
-68
-4a
-49
-7d
-98
-40
-fe
-00
-9d
-e6
-04
-00
-24
-61
-00
-00
-58
-09
-27
-c0
-98
-46
-7c
-00
-24
-21
-01
-06
-60
-4a
-49
-7d
-6f
-e0
-c9
-91
-68
-48
-c9
-68
-98
-46
-7e
-00
-6f
-e0
-c9
-91
-1f
-e6
-7c
-05
-24
-21
-01
-06
-1f
-e0
-fe
-01
-67
-e0
-c9
-91
-20
-40
-01
-12
-20
-20
-00
-a4
 70
 49
 91
 00
 20
 20
-01
-06
+00
+e6
 58
 00
 00
@@ -1058,8 +930,8 @@
 00
 20
 20
-01
-03
+00
+e3
 58
 00
 00
@@ -1098,8 +970,8 @@
 00
 20
 20
-01
-08
+00
+e8
 58
 00
 00
@@ -1120,8 +992,8 @@
 20
 36
 94
-0d
-cb
+63
+4c
 aa
 55
 40
@@ -1419,7 +1291,7 @@
 00
 85
 49
-10
+20
 aa
 55
 05
@@ -1429,13 +1301,14 @@
 02
 40
 00
-a2
+21
 05
 55
 aa
 aa
 55
-b3
+42
 2f
-c1
-b2
+a8
+8e
+00
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/usb/program/patch.prog	(revision 1189)
+++ /YC1308AC/branch/usb/program/patch.prog	(working copy)
@@ -71,6 +71,9 @@
 ifdef OTA_CODE
 	call p_g24_check_ota_data
 	call p_g24_load_ota_config,user
+	
+	fetch 2,core_lpm_ctrl
+	call lpm_write_config
 
 	fetch 9,mem_dg_usb_vid_pid
 	store 9,mem_usb_vid_pid
@@ -520,13 +523,7 @@
 	branch  p_g24_dongle_ota_tx_usb_common			
 
 
-/************************keyboard blank patch**********/
-p_dongle_work_mode_auto:
-	fetch 1,mem_24g_work_mode
-	rtnne DONGLE_WORK
-	call p_g24_work_mode_start
-	call p_dongle_g24_blank_data_process
-	branch dongle_work_mode_auto+5
+
 
 p_g24_work_mode_start:
 	fetch 1,mem_24g_work_mode
@@ -592,8 +589,10 @@
 p_dongle_usb_dispatch:
 	call p_wdt_kick
 	branch dongle_usb_dispatch+1
+	
+endif 
 
-
+	
 /************************keyboard blank patch**********/
 p_dongle_work_mode_auto:
 	fetch 1,mem_24g_work_mode
@@ -605,13 +604,15 @@
 //	ncall p_g24_check_reportrate3,true
 	fetch 1,mem_usb_tx_enable
 	isolate1 2,pdata
-	ncall g24_work_mode_start,true
+ifdef OTA_CODE
+	ncall p_g24_work_mode_start,true
+else
+	ncall g24_work_mode_start,true	
+endif
 	fetch 1,mem_24g_abort_packet
 	ncall p_g24_check_reportrate_stopadd,blank
 	call p_dongle_g24_blank_data_process
 	branch dongle_work_mode_auto+5
-	
-endif 
 
 p_dongle_g24_blank_data_process:
 	call dongle_g24_ms_blank_data
@@ -870,10 +871,6 @@
 
 //----------------------------------------------------------------------
 
-p_dongle_g24_mouse:
-	fetch 1,mem_g24_ota_mode
-	nbranch  p_dongle_g24_rx_mouse_ota,blank
-	branch dongle_g24_mouse
 
 p_dongle_g24_rx_mouse_ota:
 	rtn
@@ -1102,8 +1099,15 @@
 	and_into 0x0f,pdata
 	nbranch usb_inwake_state_tx_dispose,blank
 	branch usb_tx+3
+	
+endif
+
 
 p_dongle_g24_mouse:
+ifdef OTA_CODE
+	fetch 1,mem_g24_ota_mode
+	nbranch  p_dongle_g24_rx_mouse_ota,blank
+endif
 	call dongle_g24_mouse
 	fetch 7,mem_24g_rxdata_temp+3
 	store 7,mem_g24_tx_last
@@ -1292,8 +1296,6 @@
 	istore 7,contw
 	branch dongle_usb_tx_ms_data
 	
-	
-	
-endif
 
 
+	
