Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/eeprom.dat	(revision 1834)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-f2
-18
+02
+19
 c2
 84
 00
@@ -79,7 +79,7 @@
 c0
 67
 86
-04
+08
 c0
 68
 03
@@ -191,7 +191,7 @@
 c0
 76
 86
-34
+38
 20
 20
 13
@@ -5766,8 +5766,8 @@
 00
 20
 40
-49
-90
+05
+a6
 20
 40
 79
@@ -5775,31 +5775,47 @@
 20
 40
 05
-af
+b3
 20
 40
 05
-c3
+c7
 20
 40
 05
-a6
+aa
 20
 20
 46
 50
 6f
+e0
+cc
+40
+c3
+01
+c9
+90
+6f
+e4
+4b
+ab
+20
+20
+49
+92
+6f
 e4
 4b
 ab
 c2
 94
 85
-aa
+ae
 c2
 9b
 85
-aa
+ae
 20
 60
 00
@@ -5811,7 +5827,7 @@
 c2
 83
 05
-ad
+b1
 20
 20
 46
@@ -5855,7 +5871,7 @@
 20
 40
 05
-b8
+bc
 20
 20
 40
@@ -5883,7 +5899,7 @@
 c0
 7f
 85
-bf
+c3
 20
 20
 40
@@ -5919,7 +5935,7 @@
 24
 3a
 05
-cc
+d0
 6f
 e0
 cc
@@ -5931,7 +5947,7 @@
 20
 40
 05
-dc
+e0
 68
 48
 cc
@@ -5971,11 +5987,11 @@
 20
 40
 05
-f5
+f9
 20
 40
 05
-e0
+e4
 68
 48
 cc
@@ -6019,7 +6035,7 @@
 20
 40
 05
-eb
+ef
 67
 e0
 cc
@@ -6031,7 +6047,7 @@
 20
 3a
 05
-e7
+eb
 6f
 e0
 cc
@@ -6095,11 +6111,11 @@
 c0
 03
 86
-00
+04
 c0
 00
 06
-02
+06
 20
 60
 00
@@ -6139,11 +6155,11 @@
 c0
 03
 86
-00
+04
 c0
 00
 06
-02
+06
 20
 60
 00
@@ -6187,7 +6203,7 @@
 c2
 9e
 86
-10
+14
 18
 42
 7e
@@ -6219,7 +6235,7 @@
 24
 3a
 06
-2d
+31
 6f
 e4
 4b
@@ -6227,7 +6243,7 @@
 c2
 8e
 06
-21
+25
 18
 42
 7e
@@ -6239,11 +6255,11 @@
 c0
 00
 06
-1d
+21
 c0
 01
 06
-1b
+1f
 20
 60
 00
@@ -6255,7 +6271,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6263,7 +6279,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6271,7 +6287,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6279,7 +6295,7 @@
 20
 20
 06
-0d
+11
 18
 42
 7e
@@ -6291,15 +6307,15 @@
 c0
 00
 06
-1d
+21
 c0
 01
 06
-1f
+23
 c0
 01
 86
-1b
+1f
 20
 60
 00
@@ -6315,15 +6331,15 @@
 c0
 00
 06
-1f
+23
 c0
 00
 86
-1b
+1f
 c0
 01
 86
-19
+1d
 20
 60
 00
@@ -6335,7 +6351,7 @@
 c2
 8e
 06
-27
+2b
 18
 42
 7e
@@ -6347,11 +6363,11 @@
 c0
 00
 06
-19
+1d
 c0
 00
 86
-1b
+1f
 20
 60
 00
@@ -6388,8 +6404,8 @@
 20
 26
 f6
-cc
-a1
+52
+b4
 aa
 55
 40
@@ -7718,32 +7734,16 @@
 02
 40
 00
-33
+43
 1e
 55
 aa
 aa
 55
-65
+75
 8e
-0a
-ac
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+21
+52
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-f2
-b0
+be
+f3
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/flash.dat	(revision 1834)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/flash.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-f2
-18
+02
+19
 c2
 84
 00
@@ -79,7 +79,7 @@
 c0
 67
 86
-04
+08
 c0
 68
 03
@@ -191,7 +191,7 @@
 c0
 76
 86
-34
+38
 20
 20
 13
@@ -5766,8 +5766,8 @@
 00
 20
 40
-49
-90
+05
+a6
 20
 40
 79
@@ -5775,31 +5775,47 @@
 20
 40
 05
-af
+b3
 20
 40
 05
-c3
+c7
 20
 40
 05
-a6
+aa
 20
 20
 46
 50
 6f
+e0
+cc
+40
+c3
+01
+c9
+90
+6f
+e4
+4b
+ab
+20
+20
+49
+92
+6f
 e4
 4b
 ab
 c2
 94
 85
-aa
+ae
 c2
 9b
 85
-aa
+ae
 20
 60
 00
@@ -5811,7 +5827,7 @@
 c2
 83
 05
-ad
+b1
 20
 20
 46
@@ -5855,7 +5871,7 @@
 20
 40
 05
-b8
+bc
 20
 20
 40
@@ -5883,7 +5899,7 @@
 c0
 7f
 85
-bf
+c3
 20
 20
 40
@@ -5919,7 +5935,7 @@
 24
 3a
 05
-cc
+d0
 6f
 e0
 cc
@@ -5931,7 +5947,7 @@
 20
 40
 05
-dc
+e0
 68
 48
 cc
@@ -5971,11 +5987,11 @@
 20
 40
 05
-f5
+f9
 20
 40
 05
-e0
+e4
 68
 48
 cc
@@ -6019,7 +6035,7 @@
 20
 40
 05
-eb
+ef
 67
 e0
 cc
@@ -6031,7 +6047,7 @@
 20
 3a
 05
-e7
+eb
 6f
 e0
 cc
@@ -6095,11 +6111,11 @@
 c0
 03
 86
-00
+04
 c0
 00
 06
-02
+06
 20
 60
 00
@@ -6139,11 +6155,11 @@
 c0
 03
 86
-00
+04
 c0
 00
 06
-02
+06
 20
 60
 00
@@ -6187,7 +6203,7 @@
 c2
 9e
 86
-10
+14
 18
 42
 7e
@@ -6219,7 +6235,7 @@
 24
 3a
 06
-2d
+31
 6f
 e4
 4b
@@ -6227,7 +6243,7 @@
 c2
 8e
 06
-21
+25
 18
 42
 7e
@@ -6239,11 +6255,11 @@
 c0
 00
 06
-1d
+21
 c0
 01
 06
-1b
+1f
 20
 60
 00
@@ -6255,7 +6271,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6263,7 +6279,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6271,7 +6287,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6279,7 +6295,7 @@
 20
 20
 06
-0d
+11
 18
 42
 7e
@@ -6291,15 +6307,15 @@
 c0
 00
 06
-1d
+21
 c0
 01
 06
-1f
+23
 c0
 01
 86
-1b
+1f
 20
 60
 00
@@ -6315,15 +6331,15 @@
 c0
 00
 06
-1f
+23
 c0
 00
 86
-1b
+1f
 c0
 01
 86
-19
+1d
 20
 60
 00
@@ -6335,7 +6351,7 @@
 c2
 8e
 06
-27
+2b
 18
 42
 7e
@@ -6347,11 +6363,11 @@
 c0
 00
 06
-19
+1d
 c0
 00
 86
-1b
+1f
 20
 60
 00
@@ -6388,8 +6404,8 @@
 20
 26
 f6
-cc
-a1
+52
+b4
 aa
 55
 40
@@ -7718,32 +7734,16 @@
 02
 40
 00
-33
+43
 1e
 55
 aa
 aa
 55
-65
+75
 8e
-0a
-ac
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+21
+52
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-f2
-b0
+be
+f3
Index: output/otp.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/otp.dat	(revision 1834)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/otp.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-f2
-18
+02
+19
 c2
 84
 00
@@ -79,7 +79,7 @@
 c0
 67
 86
-04
+08
 c0
 68
 03
@@ -191,7 +191,7 @@
 c0
 76
 86
-34
+38
 20
 20
 13
@@ -5766,8 +5766,8 @@
 00
 20
 40
-49
-90
+05
+a6
 20
 40
 79
@@ -5775,31 +5775,47 @@
 20
 40
 05
-af
+b3
 20
 40
 05
-c3
+c7
 20
 40
 05
-a6
+aa
 20
 20
 46
 50
 6f
+e0
+cc
+40
+c3
+01
+c9
+90
+6f
+e4
+4b
+ab
+20
+20
+49
+92
+6f
 e4
 4b
 ab
 c2
 94
 85
-aa
+ae
 c2
 9b
 85
-aa
+ae
 20
 60
 00
@@ -5811,7 +5827,7 @@
 c2
 83
 05
-ad
+b1
 20
 20
 46
@@ -5855,7 +5871,7 @@
 20
 40
 05
-b8
+bc
 20
 20
 40
@@ -5883,7 +5899,7 @@
 c0
 7f
 85
-bf
+c3
 20
 20
 40
@@ -5919,7 +5935,7 @@
 24
 3a
 05
-cc
+d0
 6f
 e0
 cc
@@ -5931,7 +5947,7 @@
 20
 40
 05
-dc
+e0
 68
 48
 cc
@@ -5971,11 +5987,11 @@
 20
 40
 05
-f5
+f9
 20
 40
 05
-e0
+e4
 68
 48
 cc
@@ -6019,7 +6035,7 @@
 20
 40
 05
-eb
+ef
 67
 e0
 cc
@@ -6031,7 +6047,7 @@
 20
 3a
 05
-e7
+eb
 6f
 e0
 cc
@@ -6095,11 +6111,11 @@
 c0
 03
 86
-00
+04
 c0
 00
 06
-02
+06
 20
 60
 00
@@ -6139,11 +6155,11 @@
 c0
 03
 86
-00
+04
 c0
 00
 06
-02
+06
 20
 60
 00
@@ -6187,7 +6203,7 @@
 c2
 9e
 86
-10
+14
 18
 42
 7e
@@ -6219,7 +6235,7 @@
 24
 3a
 06
-2d
+31
 6f
 e4
 4b
@@ -6227,7 +6243,7 @@
 c2
 8e
 06
-21
+25
 18
 42
 7e
@@ -6239,11 +6255,11 @@
 c0
 00
 06
-1d
+21
 c0
 01
 06
-1b
+1f
 20
 60
 00
@@ -6255,7 +6271,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6263,7 +6279,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6271,7 +6287,7 @@
 20
 20
 06
-0d
+11
 58
 00
 00
@@ -6279,7 +6295,7 @@
 20
 20
 06
-0d
+11
 18
 42
 7e
@@ -6291,15 +6307,15 @@
 c0
 00
 06
-1d
+21
 c0
 01
 06
-1f
+23
 c0
 01
 86
-1b
+1f
 20
 60
 00
@@ -6315,15 +6331,15 @@
 c0
 00
 06
-1f
+23
 c0
 00
 86
-1b
+1f
 c0
 01
 86
-19
+1d
 20
 60
 00
@@ -6335,7 +6351,7 @@
 c2
 8e
 06
-27
+2b
 18
 42
 7e
@@ -6347,11 +6363,11 @@
 c0
 00
 06
-19
+1d
 c0
 00
 86
-1b
+1f
 20
 60
 00
@@ -6388,8 +6404,8 @@
 20
 26
 f6
-cc
-a1
+52
+b4
 aa
 55
 40
@@ -7718,13 +7734,13 @@
 03
 01
 00
-33
+43
 1e
 55
 aa
 aa
 55
-27
+37
 8e
-a4
-14
+8f
+ea
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/program.lis	(revision 1834)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/program.lis	(working copy)
@@ -18,7 +18,7 @@
 000f c0650278 beq patch19_2 ,p_mouse_lpm_before_common 
 0010 c06600c7 beq patch19_4 ,p_mouse_adc_read_start 
 0011 c06704fc beq patch19_6 ,p_mouse_motion 
-0012 c0678604 beq patch19_7 ,p_mouse_dpi_process 
+0012 c0678608 beq patch19_7 ,p_mouse_dpi_process 
 0013 c068034f beq patch1a_0 ,p_mouse_seting_dpi 
 0014 c068852d beq patch1a_1 ,p_mouse_check_key_gpio 
 0015 c06a050d beq patch1a_4 ,p_mouse_sensor_poweron 
@@ -48,7 +48,7 @@
 002b c074830f beq patch3d_1 ,p_g24_reconn_dispatch 
 002c c07501da beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002d c07604ef beq patch3d_4 ,p_g24_lpm_wait 
-002e c0768634 beq patch3d_5 ,p_power_ctrl_start 
+002e c0768638 beq patch3d_5 ,p_power_ctrl_start 
 002f 2020137c branch loop 
 
 p_soft_reset:
@@ -1958,230 +1958,236 @@
 059f 20600000 rtn 
 
 p_mouse_idle:
-05a0 20404990 call mouse_low_voltage_led_no_enter_lpm 
+05a0 204005a6 call p_mouse_low_voltage_led_no_enter_lpm 
 05a1 20407936 call ui_check_paring_button 
-05a2 204005af call p_mouse_dpi_check 
-05a3 204005c3 call p_mouse_dpi_another_gpio_check 
-05a4 204005a6 call p_mouse_select_device_check 
+05a2 204005b3 call p_mouse_dpi_check 
+05a3 204005c7 call p_mouse_dpi_another_gpio_check 
+05a4 204005aa call p_mouse_select_device_check 
 05a5 20204650 branch mouse_idle + 5 
 
-p_mouse_select_device_check:
+p_mouse_low_voltage_led_no_enter_lpm:
+05a6 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+05a7 c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
+
+p_mouse_low_voltage_led_no_enter_lpm_next:
+05a8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05a9 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
 
 p_mouse_select_device_check:
-05a6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05a7 c29485aa bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
-05a8 c29b85aa bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
-05a9 20600000 rtn 
+05aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05ab c29485ae bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
+05ac c29b85ae bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
+05ad 20600000 rtn 
 
 p_mouse_select_device_by_pb_button_check_judge:
-05aa 6fe1478c fetch 2 ,mem_ui_state_map 
-05ab c28305ad bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
-05ac 2020465a branch mouse_select_device_by_pb_button 
+05ae 6fe1478c fetch 2 ,mem_ui_state_map 
+05af c28305b1 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
+05b0 2020465a branch mouse_select_device_by_pb_button 
 
 p_mouse_select_device_by_pb_button_check_once:
-05ad 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
-05ae 2020021f branch p_mouse_select_device_by_pb_button 
+05b1 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
+05b2 2020021f branch p_mouse_select_device_by_pb_button 
 
 p_mouse_dpi_check:
-05af 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05b0 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-05b1 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-05b2 c17f8000 rtneq gpio_disable 
-05b3 da200000 arg 0 ,rega 
-05b4 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-05b5 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-05b6 204005b8 call p_mouse_dpi_key_check 
-05b7 2020402f branch mouse_dpi_check_next 
+05b3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05b4 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+05b5 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+05b6 c17f8000 rtneq gpio_disable 
+05b7 da200000 arg 0 ,rega 
+05b8 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+05b9 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+05ba 204005bc call p_mouse_dpi_key_check 
+05bb 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-05b8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05b9 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-05ba 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-05bb 1fe22600 copy pdata ,regc 
-05bc 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05bd c07f85bf beq gpio_disable ,p_mouse_3io6key_dpi_check 
-05be 2020403f branch mouse_dpi_key_check_next 
+05bc 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05bd c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+05be 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+05bf 1fe22600 copy pdata ,regc 
+05c0 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05c1 c07f85c3 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+05c2 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-05bf 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-05c0 20400563 call p_mouse_gpio_config_output_low 
-05c1 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-05c2 20204195 branch mouse_3io6key_check 
+05c3 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+05c4 20400563 call p_mouse_gpio_config_output_low 
+05c5 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+05c6 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-05c3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05c4 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-05c5 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-05c6 243a05cc nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+05c7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05c8 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+05c9 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+05ca 243a05d0 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-05c7 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-05c8 20400560 call p_mouse_gpio_config_output_high 
-05c9 204005dc call p_mouse_dpi_another_check 
-05ca 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05cb 20203f56 branch mouse_gpio_config_input_pu 
+05cb 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+05cc 20400560 call p_mouse_gpio_config_output_high 
+05cd 204005e0 call p_mouse_dpi_another_check 
+05ce 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05cf 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-05cc 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-05cd 793ffe07 set0 gpio_active_bit ,pdata 
-05ce 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-05cf 20400563 call p_mouse_gpio_config_output_low 
-05d0 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-05d1 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05d2 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-05d3 204005f5 call p_mouse_check_key_connect_vin_new 
-05d4 204005e0 call p_mouse_dpi_another_state_check 
+05d0 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+05d1 793ffe07 set0 gpio_active_bit ,pdata 
+05d2 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+05d3 20400563 call p_mouse_gpio_config_output_low 
+05d4 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
 05d5 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05d6 20203f56 branch mouse_gpio_config_input_pu 
+05d6 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+05d7 204005f9 call p_mouse_check_key_connect_vin_new 
+05d8 204005e4 call p_mouse_dpi_another_state_check 
+05d9 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05da 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-05d7 20403f56 call mouse_gpio_config_input_pu 
-05d8 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-05d9 c1008000 rtneq dpi_button_state_down 
-05da 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-05db 20204069 branch mouse_dpi_process 
+05db 20403f56 call mouse_gpio_config_input_pu 
+05dc 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+05dd c1008000 rtneq dpi_button_state_down 
+05de 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+05df 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-05dc 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-05dd 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05de 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-05df 204005eb call p_mouse_check_key_connect_gnd_new 
+05e0 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+05e1 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05e2 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+05e3 204005ef call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-05e0 67e0cc3c store 1 ,mem_dpi_another_press_status 
-05e1 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-05e2 203a05e7 branch p_mouse_dpi_another_up ,blank 
+05e4 67e0cc3c store 1 ,mem_dpi_another_press_status 
+05e5 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+05e6 203a05eb branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-05e3 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-05e4 c1008000 rtneq dpi_button_state_down 
-05e5 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-05e6 20204069 branch mouse_dpi_process 
+05e7 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+05e8 c1008000 rtneq dpi_button_state_down 
+05e9 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+05ea 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-05e7 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-05e8 c1000000 rtneq dpi_button_state_up 
-05e9 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-05ea 20600000 rtn 
+05eb 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+05ec c1000000 rtneq dpi_button_state_up 
+05ed 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+05ee 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-05eb 1fe3fe00 lshift pdata ,pdata 
-05ec 1fe22400 copy pdata ,regb 
-05ed 20406059 call gpio_get_bit 
-05ee 7920a400 setflag true ,0 ,regb 
-05ef 1a417e07 and regb ,0x07 ,pdata 
-05f0 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-05f1 18420e00 copy temp ,queue 
-05f2 c0038600 beq 0x07 ,p_mouse_key_press 
-05f3 c0000602 beq 0x00 ,p_mouse_key_release 
-05f4 20600000 rtn 
+05ef 1fe3fe00 lshift pdata ,pdata 
+05f0 1fe22400 copy pdata ,regb 
+05f1 20406059 call gpio_get_bit 
+05f2 7920a400 setflag true ,0 ,regb 
+05f3 1a417e07 and regb ,0x07 ,pdata 
+05f4 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+05f5 18420e00 copy temp ,queue 
+05f6 c0038604 beq 0x07 ,p_mouse_key_press 
+05f7 c0000606 beq 0x00 ,p_mouse_key_release 
+05f8 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-05f5 1fe3fe00 lshift pdata ,pdata 
-05f6 1fe22400 copy pdata ,regb 
-05f7 20403f54 call mouse_gpio_config_input_pd 
-05f8 20406059 call gpio_get_bit 
-05f9 7920a400 setflag true ,0 ,regb 
-05fa 1a417e07 and regb ,0x07 ,pdata 
-05fb 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-05fc 18420e00 copy temp ,queue 
-05fd c0038600 beq 0x07 ,p_mouse_key_press 
-05fe c0000602 beq 0x00 ,p_mouse_key_release 
-05ff 20600000 rtn 
+05f9 1fe3fe00 lshift pdata ,pdata 
+05fa 1fe22400 copy pdata ,regb 
+05fb 20403f54 call mouse_gpio_config_input_pd 
+05fc 20406059 call gpio_get_bit 
+05fd 7920a400 setflag true ,0 ,regb 
+05fe 1a417e07 and regb ,0x07 ,pdata 
+05ff 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0600 18420e00 copy temp ,queue 
+0601 c0038604 beq 0x07 ,p_mouse_key_press 
+0602 c0000606 beq 0x00 ,p_mouse_key_release 
+0603 20600000 rtn 
 
 p_mouse_key_press:
-0600 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-0601 20600000 rtn 
+0604 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+0605 20600000 rtn 
 
 p_mouse_key_release:
-0602 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-0603 20600000 rtn 
+0606 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+0607 20600000 rtn 
 
 p_mouse_dpi_process:
-0604 20404072 call mouse_dpi_ghost_check 
-0605 20740000 rtn user 
-0606 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0607 1fe20400 copy pdata ,temp 
-0608 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0609 c29e8610 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-060a 18427e00 copy temp ,pdata 
-060b 1fe0fe01 increase 1 ,pdata 
-060c 1fe17e03 and pdata ,0x03 ,pdata 
+0608 20404072 call mouse_dpi_ghost_check 
+0609 20740000 rtn user 
+060a 6fe0c992 fetch 1 ,mem_mouse_dpi 
+060b 1fe20400 copy pdata ,temp 
+060c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+060d c29e8614 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+060e 18427e00 copy temp ,pdata 
+060f 1fe0fe01 increase 1 ,pdata 
+0610 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-060d 67e0c992 store 1 ,mem_mouse_dpi 
-060e 2040034f call p_mouse_seting_dpi 
-060f 202045ee branch mouse_store_device_info_delay 
+0611 67e0c992 store 1 ,mem_mouse_dpi 
+0612 2040034f call p_mouse_seting_dpi 
+0613 202045ee branch mouse_store_device_info_delay 
 
 p_mouse_double_dpi_check:
-0610 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-0611 243a062d nbranch p_mouse_another_dpi_button_down ,blank 
+0614 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+0615 243a0631 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-0612 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0613 c28e0621 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-0614 18427e00 copy temp ,pdata 
-0615 c1008000 rtneq mouse_dpi_level2 
+0616 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0617 c28e0625 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+0618 18427e00 copy temp ,pdata 
+0619 c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-0616 c000061d beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0617 c001061b beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-0618 20600000 rtn 
+061a c0000621 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+061b c001061f beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+061c 20600000 rtn 
 
 p_mouse_dpi_level_1:
-0619 58000002 setarg 2 
-061a 2020060d branch p_mouse_dpi_store 
+061d 58000002 setarg 2 
+061e 20200611 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-061b 58000000 setarg 0 
-061c 2020060d branch p_mouse_dpi_store 
+061f 58000000 setarg 0 
+0620 20200611 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-061d 58000001 setarg 1 
-061e 2020060d branch p_mouse_dpi_store 
+0621 58000001 setarg 1 
+0622 20200611 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-061f 58000003 setarg 3 
-0620 2020060d branch p_mouse_dpi_store 
+0623 58000003 setarg 3 
+0624 20200611 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-0621 18427e00 copy temp ,pdata 
-0622 c1008000 rtneq mouse_dpi_level2 
-0623 c000061d beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0624 c001061f beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-0625 c001861b beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-0626 20600000 rtn 
+0625 18427e00 copy temp ,pdata 
+0626 c1008000 rtneq mouse_dpi_level2 
+0627 c0000621 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+0628 c0010623 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+0629 c001861f beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+062a 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-0627 18427e00 copy temp ,pdata 
-0628 c1010000 rtneq mouse_dpi_level3 
-0629 c000061f beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-062a c000861b beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-062b c0018619 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-062c 20600000 rtn 
+062b 18427e00 copy temp ,pdata 
+062c c1010000 rtneq mouse_dpi_level3 
+062d c0000623 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+062e c000861f beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+062f c001861d beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+0630 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-062d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-062e c28e0627 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-062f 18427e00 copy temp ,pdata 
-0630 c1010000 rtneq mouse_dpi_level3 
+0631 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0632 c28e062b bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+0633 18427e00 copy temp ,pdata 
+0634 c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-0631 c0000619 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-0632 c000861b beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-0633 20600000 rtn 
+0635 c000061d beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+0636 c000861f beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+0637 20600000 rtn 
 
 p_power_ctrl_start:
-0634 6fe1478c fetch 2 ,mem_ui_state_map 
-0635 c3858000 rtnbit1 ui_state_ble_adv 
-0636 c3838000 rtnbit1 ui_state_bt_reconnect 
-0637 c3830000 rtnbit1 ui_state_bt_discovery 
-0638 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0639 204025cb call rssi_average 
-063a 6048c8c7 storet 1 ,mem_rssi_avg_received 
-063b 202026f6 branch power_ctrl_rssi_avg_compare 
+0638 6fe1478c fetch 2 ,mem_ui_state_map 
+0639 c3858000 rtnbit1 ui_state_ble_adv 
+063a c3838000 rtnbit1 ui_state_bt_reconnect 
+063b c3830000 rtnbit1 ui_state_bt_discovery 
+063c 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+063d 204025cb call rssi_average 
+063e 6048c8c7 storet 1 ,mem_rssi_avg_received 
+063f 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/ramcode.rom	(revision 1834)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/ramcode.rom	(working copy)
@@ -16,7 +16,7 @@
 c0650278
 c06600c7
 c06704fc
-c0678604
+c0678608
 c068034f
 c068852d
 c06a050d
@@ -44,7 +44,7 @@
 c074830f
 c07501da
 c07604ef
-c0768634
+c0768638
 2020137c
 20800000
 204030f3
@@ -1438,18 +1438,22 @@
 58000000
 67e24c33
 20600000
-20404990
-20407936
-204005af
-204005c3
 204005a6
+20407936
+204005b3
+204005c7
+204005aa
 20204650
+6fe0cc40
+c301c990
 6fe44bab
-c29485aa
-c29b85aa
+20204992
+6fe44bab
+c29485ae
+c29b85ae
 20600000
 6fe1478c
-c28305ad
+c28305b1
 2020465a
 704b9403
 2020021f
@@ -1460,14 +1464,14 @@
 da200000
 704b9605
 6848c90f
-204005b8
+204005bc
 2020402f
 6fe44bab
 c2964048
 6fe0cb93
 1fe22600
 6fe0c910
-c07f85bf
+c07f85c3
 2020403f
 6fe0c90f
 20400563
@@ -1476,10 +1480,10 @@
 6fe44bab
 c41e8000
 6fe0cc3a
-243a05cc
+243a05d0
 6fe0cc3b
 20400560
-204005dc
+204005e0
 6848cc3b
 20203f56
 6fe0cc3b
@@ -1489,8 +1493,8 @@
 704c3f00
 6848cc3b
 6fe0cc3c
-204005f5
-204005e0
+204005f9
+204005e4
 6848cc3b
 20203f56
 20403f56
@@ -1501,10 +1505,10 @@
 704c3f00
 6848cc3b
 6fe0cc3c
-204005eb
+204005ef
 67e0cc3c
 6fe0cc3e
-203a05e7
+203a05eb
 6fe0cc3d
 c1008000
 704c3d01
@@ -1520,8 +1524,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038600
-c0000602
+c0038604
+c0000606
 20600000
 1fe3fe00
 1fe22400
@@ -1531,8 +1535,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038600
-c0000602
+c0038604
+c0000606
 20600000
 704c3e01
 20600000
@@ -1543,7 +1547,7 @@
 6fe0c992
 1fe20400
 6fe44bab
-c29e8610
+c29e8614
 18427e00
 1fe0fe01
 1fe17e03
@@ -1551,40 +1555,40 @@
 2040034f
 202045ee
 6fe0cc3e
-243a062d
+243a0631
 6fe44bab
-c28e0621
+c28e0625
 18427e00
 c1008000
-c000061d
-c001061b
+c0000621
+c001061f
 20600000
 58000002
-2020060d
+20200611
 58000000
-2020060d
+20200611
 58000001
-2020060d
+20200611
 58000003
-2020060d
+20200611
 18427e00
 c1008000
-c000061d
-c001061f
-c001861b
+c0000621
+c0010623
+c001861f
 20600000
 18427e00
 c1010000
-c000061f
-c000861b
-c0018619
+c0000623
+c000861f
+c001861d
 20600000
 6fe44bab
-c28e0627
+c28e062b
 18427e00
 c1010000
-c0000619
-c000861b
+c000061d
+c000861f
 20600000
 6fe1478c
 c3858000
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/program/patch.prog	(revision 1834)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/program/patch.prog	(working copy)
@@ -2004,15 +2004,21 @@
 /////////////////////////////////////////////firekey end//////////////////////////////////////////
 
 p_mouse_idle:
-	call mouse_low_voltage_led_no_enter_lpm
+	call p_mouse_low_voltage_led_no_enter_lpm
 	call ui_check_paring_button
 	call p_mouse_dpi_check
 	call p_mouse_dpi_another_gpio_check
 	call p_mouse_select_device_check
 	branch mouse_idle+5
 
+p_mouse_low_voltage_led_no_enter_lpm:
+	fetch 1,mem_mouse_led_new_interface_config
+	bbit0 MOUSE_ENABLE_LOW_LED,mouse_low_voltage_led_no_enter_lpm
+p_mouse_low_voltage_led_no_enter_lpm_next:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	branch mouse_low_voltage_led_no_enter_lpm+2
+
 p_mouse_select_device_check:
-	p_mouse_select_device_check:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON,p_mouse_select_device_by_pb_button_check_judge
 	bbit1 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY,p_mouse_select_device_by_pb_button_check_judge
