Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/eeprom.dat	(revision 3381)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-22
+26
 17
 c2
 84
@@ -79,11 +79,11 @@
 c0
 67
 04
-d0
+d1
 c0
 67
 85
-90
+91
 c0
 68
 03
@@ -91,7 +91,7 @@
 c0
 68
 85
-05
+06
 c0
 69
 80
@@ -99,7 +99,7 @@
 c0
 6a
 04
-ea
+eb
 c0
 6b
 02
@@ -111,15 +111,15 @@
 c0
 6d
 04
-3f
+41
 c0
 6d
 84
-6c
+6d
 c0
 6f
 05
-3d
+3e
 c0
 6f
 80
@@ -135,7 +135,7 @@
 c0
 74
 04
-73
+74
 20
 20
 13
@@ -143,7 +143,7 @@
 c0
 0d
 04
-87
+88
 c0
 10
 00
@@ -159,19 +159,19 @@
 c0
 43
 84
-6f
+70
 c0
 50
 84
-91
+92
 c0
 51
 84
-9b
+9c
 c0
 60
 04
-9d
+9e
 c0
 6e
 83
@@ -191,11 +191,11 @@
 c0
 76
 04
-c3
+c4
 c0
 76
 85
-c0
+c1
 20
 20
 13
@@ -306,10 +306,6 @@
 c9
 20
 40
-3d
-5a
-20
-40
 00
 50
 6f
@@ -317,10 +313,14 @@
 cc
 42
 24
-3a
+5a
 03
 b0
 20
+40
+3d
+5a
+20
 60
 00
 00
@@ -1007,7 +1007,7 @@
 20
 40
 04
-fc
+fd
 20
 20
 3b
@@ -1299,7 +1299,7 @@
 20
 40
 03
-fc
+fe
 20
 40
 03
@@ -1791,7 +1791,7 @@
 20
 20
 04
-fc
+fd
 20
 40
 26
@@ -2019,7 +2019,7 @@
 20
 20
 05
-42
+43
 6f
 e0
 c9
@@ -2143,11 +2143,11 @@
 20
 40
 04
-f5
+f6
 20
 40
 04
-fc
+fd
 20
 20
 3e
@@ -2163,7 +2163,7 @@
 20
 40
 03
-fc
+fe
 20
 40
 03
@@ -2195,7 +2195,7 @@
 20
 40
 05
-37
+38
 d8
 40
 00
@@ -2475,7 +2475,7 @@
 20
 40
 05
-37
+38
 20
 20
 3e
@@ -2503,7 +2503,7 @@
 20
 40
 04
-c3
+c4
 24
 74
 00
@@ -3027,7 +3027,7 @@
 20
 40
 04
-fc
+fd
 20
 20
 02
@@ -3435,7 +3435,7 @@
 20
 3a
 04
-07
+09
 67
 e0
 cb
@@ -3579,7 +3579,7 @@
 20
 40
 04
-04
+06
 20
 40
 03
@@ -3595,7 +3595,7 @@
 20
 40
 04
-1c
+1e
 20
 40
 44
@@ -3619,7 +3619,7 @@
 20
 40
 04
-33
+35
 20
 40
 45
@@ -3627,7 +3627,7 @@
 20
 40
 04
-36
+38
 20
 40
 45
@@ -3659,7 +3659,7 @@
 20
 40
 04
-39
+3b
 20
 20
 03
@@ -3735,7 +3735,7 @@
 20
 40
 04
-ea
+eb
 20
 20
 03
@@ -4041,13 +4041,21 @@
 00
 00
 6f
+e1
+4a
+c2
+24
+7a
+00
+00
+6f
 e4
 4b
 ab
 c2
 82
 04
-00
+02
 70
 4c
 9b
@@ -4082,8 +4090,8 @@
 00
 20
 21
-03
-fe
+04
+00
 68
 48
 cb
@@ -4115,7 +4123,7 @@
 20
 20
 03
-fc
+fe
 da
 60
 4b
@@ -4123,7 +4131,7 @@
 da
 40
 04
-07
+09
 20
 20
 31
@@ -4179,11 +4187,11 @@
 20
 41
 04
-16
+18
 24
 41
 04
-1a
+1c
 20
 20
 48
@@ -4219,7 +4227,7 @@
 c0
 00
 04
-22
+24
 6f
 e4
 4b
@@ -4235,7 +4243,7 @@
 20
 20
 04
-25
+27
 6f
 e4
 4b
@@ -4271,7 +4279,7 @@
 20
 22
 84
-2c
+2e
 20
 20
 44
@@ -4279,7 +4287,7 @@
 20
 40
 04
-31
+33
 6f
 e0
 cb
@@ -4335,7 +4343,7 @@
 da
 40
 04
-3c
+3e
 20
 20
 31
@@ -4354,16 +4362,16 @@
 1b
 20
 40
-04
-fc
-20
-40
 03
 b0
 20
 40
+04
+fd
+20
+40
 03
-fc
+fe
 6f
 e1
 47
@@ -4407,7 +4415,7 @@
 c2
 85
 84
-55
+57
 6f
 e4
 4b
@@ -4415,7 +4423,7 @@
 c3
 04
 04
-55
+57
 68
 49
 49
@@ -4500,38 +4508,34 @@
 40
 46
 e4
+6f
+e0
+cb
+b3
+2f
+ef
+fe
+01
 20
 40
-04
-66
-20
-60
-00
-00
+c3
+df
 6f
 e0
-c9
-38
-c0
+cb
+b3
+2f
+ef
+fe
 00
-84
-6a
-c0
-01
-04
-6b
+20
+40
+f8
+c4
 20
 60
 00
 00
-20
-20
-78
-c4
-20
-20
-43
-df
 58
 00
 00
@@ -4587,7 +4591,7 @@
 c0
 04
 84
-7b
+7c
 20
 20
 4d
@@ -4663,7 +4667,7 @@
 c0
 03
 84
-8e
+8f
 20
 20
 57
@@ -4735,7 +4739,7 @@
 c0
 02
 04
-a0
+a1
 20
 20
 19
@@ -4751,11 +4755,11 @@
 c0
 05
 04
-a5
+a6
 c0
 09
 04
-b4
+b5
 20
 20
 1c
@@ -4783,7 +4787,7 @@
 c2
 81
 84
-af
+b0
 6f
 e1
 44
@@ -4811,11 +4815,11 @@
 24
 22
 84
-ab
+ac
 24
 34
 04
-ab
+ac
 20
 20
 1e
@@ -4963,7 +4967,7 @@
 20
 40
 05
-03
+04
 6f
 e0
 c8
@@ -4979,15 +4983,15 @@
 24
 34
 04
-e2
+e3
 20
 40
 04
-df
+e0
 20
 40
 04
-e7
+e8
 20
 20
 45
@@ -5047,7 +5051,7 @@
 c0
 05
 84
-f1
+f2
 20
 40
 42
@@ -5067,7 +5071,7 @@
 20
 40
 04
-f8
+f9
 da
 60
 4b
@@ -5087,7 +5091,7 @@
 c0
 05
 84
-f8
+f9
 20
 20
 42
@@ -5123,7 +5127,7 @@
 c0
 05
 85
-01
+02
 20
 20
 42
@@ -5139,7 +5143,7 @@
 20
 40
 05
-05
+06
 20
 20
 40
@@ -5159,23 +5163,23 @@
 20
 40
 05
-0e
+0f
 20
 40
 05
-13
+14
 20
 40
 05
-18
+19
 20
 40
 05
-1d
+1e
 20
 40
 05
-2a
+2b
 20
 20
 41
@@ -5187,7 +5191,7 @@
 20
 40
 05
-37
+38
 20
 40
 41
@@ -5207,7 +5211,7 @@
 20
 40
 05
-37
+38
 20
 40
 41
@@ -5227,7 +5231,7 @@
 20
 40
 05
-37
+38
 20
 40
 41
@@ -5271,7 +5275,7 @@
 c0
 7f
 85
-26
+27
 20
 20
 41
@@ -5283,7 +5287,7 @@
 20
 40
 05
-3a
+3b
 68
 48
 c9
@@ -5323,7 +5327,7 @@
 c0
 7f
 85
-33
+34
 20
 20
 41
@@ -5335,7 +5339,7 @@
 20
 40
 05
-3a
+3b
 68
 48
 c9
@@ -5379,11 +5383,11 @@
 20
 40
 05
-42
+43
 20
 40
 05
-54
+55
 20
 20
 46
@@ -5411,7 +5415,7 @@
 20
 40
 05
-49
+4a
 20
 20
 40
@@ -5439,7 +5443,7 @@
 c0
 7f
 85
-50
+51
 20
 20
 40
@@ -5451,7 +5455,7 @@
 20
 40
 05
-3a
+3b
 68
 48
 c9
@@ -5475,7 +5479,7 @@
 24
 3a
 05
-5d
+5e
 6f
 e0
 cc
@@ -5483,11 +5487,11 @@
 20
 40
 05
-37
+38
 20
 40
 05
-68
+69
 68
 48
 cc
@@ -5511,7 +5515,7 @@
 20
 40
 05
-3a
+3b
 70
 4c
 3f
@@ -5527,11 +5531,11 @@
 20
 40
 05
-81
+82
 20
 40
 05
-6c
+6d
 68
 48
 cc
@@ -5555,7 +5559,7 @@
 20
 40
 05
-77
+78
 67
 e0
 cc
@@ -5567,7 +5571,7 @@
 20
 3a
 05
-73
+74
 6f
 e0
 cc
@@ -5631,11 +5635,11 @@
 c0
 03
 85
-8c
+8d
 c0
 00
 05
-8e
+8f
 20
 60
 00
@@ -5675,11 +5679,11 @@
 c0
 03
 85
-8c
+8d
 c0
 00
 05
-8e
+8f
 20
 60
 00
@@ -5723,7 +5727,7 @@
 c2
 9e
 85
-9c
+9d
 18
 42
 7e
@@ -5755,7 +5759,7 @@
 24
 3a
 05
-b9
+ba
 6f
 e4
 4b
@@ -5763,7 +5767,7 @@
 c2
 8e
 05
-ad
+ae
 18
 42
 7e
@@ -5775,11 +5779,11 @@
 c0
 00
 05
-a9
+aa
 c0
 01
 05
-a7
+a8
 20
 60
 00
@@ -5791,7 +5795,7 @@
 20
 20
 05
-99
+9a
 58
 00
 00
@@ -5799,7 +5803,7 @@
 20
 20
 05
-99
+9a
 58
 00
 00
@@ -5807,7 +5811,7 @@
 20
 20
 05
-99
+9a
 58
 00
 00
@@ -5815,7 +5819,7 @@
 20
 20
 05
-99
+9a
 18
 42
 7e
@@ -5827,15 +5831,15 @@
 c0
 00
 05
-a9
+aa
 c0
 01
 05
-ab
+ac
 c0
 01
 85
-a7
+a8
 20
 60
 00
@@ -5851,15 +5855,15 @@
 c0
 00
 05
-ab
+ac
 c0
 00
 85
-a7
+a8
 c0
 01
 85
-a5
+a6
 20
 60
 00
@@ -5871,7 +5875,7 @@
 c2
 8e
 05
-b3
+b4
 18
 42
 7e
@@ -5883,11 +5887,11 @@
 c0
 00
 05
-a5
+a6
 c0
 00
 85
-a7
+a8
 20
 60
 00
@@ -5924,8 +5928,8 @@
 20
 26
 f6
-61
-76
+5b
+d7
 aa
 55
 40
@@ -6070,7 +6074,7 @@
 5a
 00
 00
-02
+22
 81
 1b
 aa
@@ -6097,8 +6101,8 @@
 00
 0d
 49
-ff
-ff
+0b
+0c
 0d
 aa
 55
@@ -6124,7 +6128,7 @@
 0b
 0c
 0d
-0c
+0a
 ff
 ff
 ff
@@ -6155,7 +6159,7 @@
 00
 ed
 4b
-ff
+03
 58
 02
 aa
@@ -6200,8 +6204,8 @@
 48
 4c
 08
-0a
-8a
+88
+ff
 aa
 55
 01
@@ -6247,7 +6251,7 @@
 b3
 4b
 03
-03
+02
 aa
 55
 08
@@ -7262,20 +7266,16 @@
 02
 40
 00
-6b
+6f
 1c
 55
 aa
 aa
 55
-a0
-92
-75
-59
-ff
-ff
-ff
-ff
+d1
+90
+fd
+c7
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-da
-bc
+72
+56
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/program.lis	(revision 3381)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/program.lis	(working copy)
@@ -18,38 +18,38 @@
 000f c0648219 beq patch19_1 ,p_mouse_setgpio_hibernate 
 0010 c0650263 beq patch19_2 ,p_mouse_lpm_before_common 
 0011 c06600d7 beq patch19_4 ,p_mouse_adc_read_start 
-0012 c06704d0 beq patch19_6 ,p_mouse_motion 
-0013 c0678590 beq patch19_7 ,p_mouse_dpi_process 
+0012 c06704d1 beq patch19_6 ,p_mouse_motion 
+0013 c0678591 beq patch19_7 ,p_mouse_dpi_process 
 0014 c068034b beq patch1a_0 ,p_mouse_seting_dpi 
-0015 c0688505 beq patch1a_1 ,p_mouse_check_key_gpio 
+0015 c0688506 beq patch1a_1 ,p_mouse_check_key_gpio 
 0016 c0698039 beq patch1a_3 ,p_mouse_init_sunt 
-0017 c06a04ea beq patch1a_4 ,p_mouse_sensor_poweron 
+0017 c06a04eb beq patch1a_4 ,p_mouse_sensor_poweron 
 0018 c06b0285 beq patch1a_6 ,p_mouse_priority_bb_event 
 0019 c06c8378 beq patch1b_1 ,p_mouse_bb_event_timer 
-001a c06d043f beq patch1b_2 ,p_mouse_start_discovery 
-001b c06d846c beq patch1b_3 ,p_mouse_stop_discovery 
-001c c06f053d beq patch1b_6 ,p_mouse_idle 
+001a c06d0441 beq patch1b_2 ,p_mouse_start_discovery 
+001b c06d846d beq patch1b_3 ,p_mouse_stop_discovery 
+001c c06f053e beq patch1b_6 ,p_mouse_idle 
 001d c06f8063 beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001e c070805b beq patch1c_1 ,p_mouse_led_off 
 001f c0710057 beq patch1c_2 ,p_mouse_led_on 
-0020 c0740473 beq patch1d_0 ,p_hid_rx_process 
+0020 c0740474 beq patch1d_0 ,p_hid_rx_process 
 0021 2020137c branch loop 
 
 pf_patch_ext:
-0022 c00d0487 beq patch23_2 ,p_send_lmp 
+0022 c00d0488 beq patch23_2 ,p_send_lmp 
 0023 c0100055 beq patch24_0 ,p_twspi_reset 
 0024 c01980b7 beq patch26_3 ,p_adc_init_data 
 0025 c01a00bc beq patch26_4 ,p_enable_adc 
-0026 c043846f beq patch30_7 ,p_ui_timer_check 
-0027 c0508491 beq patch34_1 ,p_le_slave_match 
-0028 c051849b beq patch34_3 ,p_le_slave_unsync 
-0029 c060049d beq patch38_0 ,p_le_parse_l2cap 
+0026 c0438470 beq patch30_7 ,p_ui_timer_check 
+0027 c0508492 beq patch34_1 ,p_le_slave_match 
+0028 c051849c beq patch34_3 ,p_le_slave_unsync 
+0029 c060049e beq patch38_0 ,p_le_parse_l2cap 
 002a c06e8329 beq patch3b_5 ,p_g24_dispatch 
 002b c07102f5 beq patch3c_2 ,p_g24_pair_dispatch 
 002c c07482fd beq patch3d_1 ,p_g24_reconn_dispatch 
 002d c07501bf beq patch3d_2 ,p_g24_transmit_no_interrupt 
-002e c07604c3 beq patch3d_4 ,p_g24_lpm_wait 
-002f c07685c0 beq patch3d_5 ,p_power_ctrl_start 
+002e c07604c4 beq patch3d_4 ,p_g24_lpm_wait 
+002f c07685c1 beq patch3d_5 ,p_power_ctrl_start 
 0030 2020137c branch loop 
 
 p_soft_reset:
@@ -93,10 +93,10 @@
 004a 202041c9 branch mouse_mx8650_init_param + 4 
 
 p_mouse_start_reconnect_device:
-004b 20403d5a call mouse_start_reconnect_device + 1 
-004c 20400050 call p_mouse_judge_reconnect_state 
-004d 6fe0cc42 fetch 1 ,mem_mouse_bt_led_recon_effect_flag 
-004e 243a03b0 nbranch p_mouse_device_discover_led_config ,blank 
+004b 20400050 call p_mouse_judge_reconnect_state 
+004c 6fe0cc42 fetch 1 ,mem_mouse_bt_led_recon_effect_flag 
+004d 245a03b0 ncall p_mouse_device_discover_led_config ,blank 
+004e 20403d5a call mouse_start_reconnect_device + 1 
 004f 20600000 rtn 
 
 p_mouse_judge_reconnect_state:
@@ -328,7 +328,7 @@
 00f7 20403d8a call mouse_usb_check_enable 
 00f8 20404728 call mouse_drawing_optima_init 
 00f9 2040017a call p_mouse_cb_fuction 
-00fa 204004fc call p_mouse_sensor_powerdown 
+00fa 204004fd call p_mouse_sensor_powerdown 
 00fb 20203bc9 branch mouse_init + 8 
 
 p_mouse_double_dpi_judge:
@@ -421,7 +421,7 @@
 0140 20403d13 call mouse_param_init 
 0141 20400166 call p_mouse_select_angle 
 0142 20400233 call p_mouse_set_sensor_gpio_sleep 
-0143 204003fc call p_mouse_logo_led_off 
+0143 204003fe call p_mouse_logo_led_off 
 0144 204003e8 call p_mouse_1io2led_all_off 
 0145 20400373 call p_mouse_low_voltage_led_off 
 0146 204003a6 call p_mouse_device_multi_led_poweron_init 
@@ -576,7 +576,7 @@
 01bb 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 01bc 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 01bd 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-01be 202004fc branch p_mouse_sensor_powerdown 
+01be 202004fd branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 01bf 20402631 call g24_txdata_prep 
@@ -653,7 +653,7 @@
 p_mouse_dpi_check_once:
 01f5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 01f6 c4140000 rtnbit0 mouse_enable_select_device_by_dpi_button 
-01f7 20200542 branch p_mouse_dpi_check 
+01f7 20200543 branch p_mouse_dpi_check 
 
 p_mouse_select_device_by_pb_button:
 01f8 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
@@ -698,14 +698,14 @@
 0213 58000006 setarg pan_reg_config 
 0214 20405b0d call twspi_read 
 0215 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0216 204004f5 call p_mouse_sensor_reset 
-0217 204004fc call p_mouse_sensor_powerdown 
+0216 204004f6 call p_mouse_sensor_reset 
+0217 204004fd call p_mouse_sensor_powerdown 
 0218 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
 0219 204042e9 call mouse_set_sdio_high 
 021a 20407fdc call clear_wake 
-021b 204003fc call p_mouse_logo_led_off 
+021b 204003fe call p_mouse_logo_led_off 
 021c 20400373 call p_mouse_low_voltage_led_off 
 021d 20404015 call mouse_before_hibernate_wheel_gpio_set 
 021e 6848c910 fetcht 1 ,mem_matrix_public_gpio 
@@ -713,7 +713,7 @@
 0220 6848c910 fetcht 1 ,mem_matrix_public_gpio 
 0221 20406042 call gpio_clr_wake 
 0222 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0223 20400537 call p_mouse_gpio_config_output_high 
+0223 20400538 call p_mouse_gpio_config_output_high 
 0224 d8400003 arg 3 ,temp 
 0225 20403f56 call mouse_gpio_config_input_pu 
 0226 20400263 call p_mouse_lpm_before_common 
@@ -805,7 +805,7 @@
 0266 20406050 call gpio_config_input 
 0267 20403f88 call mouse_wheel_check 
 0268 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0269 20400537 call p_mouse_gpio_config_output_high 
+0269 20400538 call p_mouse_gpio_config_output_high 
 026a 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -816,7 +816,7 @@
 026f 2040269f call g24_search_receiver 
 
 p_g24_long_sleep:
-0270 204004c3 call p_g24_lpm_wait 
+0270 204004c4 call p_g24_lpm_wait 
 0271 24740000 nrtn user 
 0272 204026c4 call g24_setgpio_lpm_before 
 0273 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
@@ -983,7 +983,7 @@
 02f0 58000000 setarg 0 
 02f1 67e3c8d0 store 7 ,mem_mouse_key 
 02f2 704be101 jam 1 ,mem_sensor_shutdown_flag 
-02f3 204004fc call p_mouse_sensor_powerdown 
+02f3 204004fd call p_mouse_sensor_powerdown 
 02f4 20200270 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1115,7 +1115,7 @@
 0356 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
 0357 247a0000 nrtn blank 
 0358 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-0359 203a0407 branch p_mouse_dpi_led_blink_init ,blank 
+0359 203a0409 branch p_mouse_dpi_led_blink_init ,blank 
 035a 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
 035b 20600000 rtn 
 
@@ -1163,19 +1163,19 @@
 037a 2040232b call g24_pair_timeout_timer 
 037b 20402556 call g24_reconn_timeout_timer 
 037c 204047cd call mouse_24g_long_sleep_param_update_timer 
-037d 20400404 call p_mouse_dpi_led_blink_delay_timer 
+037d 20400406 call p_mouse_dpi_led_blink_delay_timer 
 037e 204003b8 call p_mouse_led_multi_timer 
 037f 2040407c call mouse_dpi_key_check_long_press 
 0380 204044cc call mouse_bt_discovery_check 
-0381 2040041c call p_mouse_commbination_key_process 
+0381 2040041e call p_mouse_commbination_key_process 
 0382 204044ff call mouse_check_discovery_timeout_timer 
 0383 20400393 call p_mouse_24g_lowpower_stop_blink_timer 
 0384 20400399 call p_mouse_24g_low_power_led_off_timer 
 0385 2040039d call p_mouse_check_direct_timeout_timer 
 0386 20404512 call mouse_le_enable_att_list_timer 
-0387 20400433 call p_mouse_le_battery_updata_timer 
+0387 20400435 call p_mouse_le_battery_updata_timer 
 0388 20404515 call mouse_le_send_smp_security_request_timer 
-0389 20400436 call p_mouse_le_send_conn_param_update_timer 
+0389 20400438 call p_mouse_le_send_conn_param_update_timer 
 038a 2040452a call mouse_check_hid_handshake_timer 
 038b 2040452d call mouse_bt_check_sniff_req_timeout_timer 
 038c 20404532 call mouse_check_reconnect_delay_long_sleep 
@@ -1183,7 +1183,7 @@
 038e 20404022 call mouse_wheel_trigger_timer 
 038f 20404547 call mouse_store_information_delay_timer 
 0390 204003eb call p_mouse_logo_led_on_timer 
-0391 20400439 call p_mouse_check_no_data_timeout_timer 
+0391 2040043b call p_mouse_check_no_data_timeout_timer 
 0392 202003a1 branch p_mouse_g24_ota_reset_timer 
 
 p_mouse_24g_lowpower_stop_blink_timer:
@@ -1216,7 +1216,7 @@
 03a3 2020318a branch timer_single_step 
 
 p_mouse_device_connect_init_sensor_or_led:
-03a4 204004ea call p_mouse_sensor_poweron 
+03a4 204004eb call p_mouse_sensor_poweron 
 03a5 202003ae branch p_mouse_device_poweron_led_config 
 
 p_mouse_device_multi_led_poweron_init:
@@ -1343,653 +1343,648 @@
 03ee 247a0000 nrtn blank 
 03ef 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
 03f0 247a0000 nrtn blank 
-03f1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-03f2 c2820400 bbit1 mouse_low_voltage_flag ,p_mouse_low_power_logo_off 
-03f3 704c9b00 jam 0 ,mem_mouse_low_power_logo_off_status 
-03f4 6fe14ab2 fetch 2 ,mem_mouse_no_data_timer 
-03f5 207a0000 rtn blank 
-03f6 6fe14bbe fetch 2 ,mem_mouse_no_data_timeout 
-03f7 68494ab2 fetcht 2 ,mem_mouse_no_data_timer 
-03f8 98460400 isub temp ,temp 
-03f9 6fe14bee fetch 2 ,mem_mouse_logo_led_on_time_init 
-03fa 98467e00 isub temp ,pdata 
-03fb 202103fe branch p_mouse_logo_led_on ,positive 
+03f1 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+03f2 247a0000 nrtn blank 
+03f3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+03f4 c2820402 bbit1 mouse_low_voltage_flag ,p_mouse_low_power_logo_off 
+03f5 704c9b00 jam 0 ,mem_mouse_low_power_logo_off_status 
+03f6 6fe14ab2 fetch 2 ,mem_mouse_no_data_timer 
+03f7 207a0000 rtn blank 
+03f8 6fe14bbe fetch 2 ,mem_mouse_no_data_timeout 
+03f9 68494ab2 fetcht 2 ,mem_mouse_no_data_timer 
+03fa 98460400 isub temp ,temp 
+03fb 6fe14bee fetch 2 ,mem_mouse_logo_led_on_time_init 
+03fc 98467e00 isub temp ,pdata 
+03fd 20210400 branch p_mouse_logo_led_on ,positive 
 
 p_mouse_logo_led_off:
-03fc 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
-03fd 20206065 branch gpio_out_inactive 
+03fe 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
+03ff 20206065 branch gpio_out_inactive 
 
 p_mouse_logo_led_on:
-03fe 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
-03ff 20206069 branch gpio_out_active 
+0400 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
+0401 20206069 branch gpio_out_active 
 
 p_mouse_low_power_logo_off:
-0400 6fe0cc9b fetch 1 ,mem_mouse_low_power_logo_off_status 
-0401 247a0000 nrtn blank 
-0402 704c9b01 jam 1 ,mem_mouse_low_power_logo_off_status 
-0403 202003fc branch p_mouse_logo_led_off 
+0402 6fe0cc9b fetch 1 ,mem_mouse_low_power_logo_off_status 
+0403 247a0000 nrtn blank 
+0404 704c9b01 jam 1 ,mem_mouse_low_power_logo_off_status 
+0405 202003fe branch p_mouse_logo_led_off 
 
 p_mouse_dpi_led_blink_delay_timer:
-0404 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-0405 da400407 arg p_mouse_dpi_led_blink_init ,regb 
-0406 2020318a branch timer_single_step 
+0406 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0407 da400409 arg p_mouse_dpi_led_blink_init ,regb 
+0408 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-0407 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0408 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0409 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-040a 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-040b 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-040c 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-040d 67e14930 store 2 ,mem_mouse_on_time 
-040e 67e14932 store 2 ,mem_mouse_off_time 
-040f da200000 arg 0 ,rega 
-0410 6848c992 fetcht 1 ,mem_mouse_dpi 
-0411 18408402 increase 2 ,temp 
-0412 18467c03 sub temp ,3 ,null 
-0413 20410416 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0414 2441041a ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0415 202048ff branch mouse_dpi_led_blink_init_end 
+0409 6fe0c927 fetch 1 ,mem_config_sensor_type 
+040a c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+040b c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+040c 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+040d 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+040e 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+040f 67e14930 store 2 ,mem_mouse_on_time 
+0410 67e14932 store 2 ,mem_mouse_off_time 
+0411 da200000 arg 0 ,rega 
+0412 6848c992 fetcht 1 ,mem_mouse_dpi 
+0413 18408402 increase 2 ,temp 
+0414 18467c03 sub temp ,3 ,null 
+0415 20410418 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0416 2441041c ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0417 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0416 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0417 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0418 18408401 increase 1 ,temp 
-0419 20600000 rtn 
+0418 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0419 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+041a 18408401 increase 1 ,temp 
+041b 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-041a 184085fd increase -3 ,temp 
-041b 20600000 rtn 
+041c 184085fd increase -3 ,temp 
+041d 20600000 rtn 
 
 p_mouse_commbination_key_process:
-041c 6fe0c938 fetch 1 ,mem_device_flag 
-041d c0000422 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-041e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-041f c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0420 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0421 20200425 branch p_mouse_commbination_key_start 
+041e 6fe0c938 fetch 1 ,mem_device_flag 
+041f c0000424 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0420 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0421 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0422 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0423 20200427 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0422 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0423 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0424 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0424 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0425 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+0426 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-0425 6048cb9d storet 1 ,mem_mouse_commbination_key 
-0426 20404115 call mouse_check_key_gpio 
-0427 1fe17e07 and pdata ,0x07 ,pdata 
-0428 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0429 98467c00 isub temp ,null 
-042a 2022842c branch p_mouse_commbination_key_down ,zero 
-042b 202044eb branch mouse_commbination_key_up 
+0427 6048cb9d storet 1 ,mem_mouse_commbination_key 
+0428 20404115 call mouse_check_key_gpio 
+0429 1fe17e07 and pdata ,0x07 ,pdata 
+042a 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+042b 98467c00 isub temp ,null 
+042c 2022842e branch p_mouse_commbination_key_down ,zero 
+042d 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-042c 20400431 call p_mouse_combination_ui_timer 
-042d 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-042e c1008000 rtneq commbination_key_state_down 
-042f 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0430 20600000 rtn 
+042e 20400433 call p_mouse_combination_ui_timer 
+042f 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0430 c1008000 rtneq commbination_key_state_down 
+0431 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0432 20600000 rtn 
 
 p_mouse_combination_ui_timer:
-0431 da4002de arg p_mouse_24g_start_pair_mode ,regb 
-0432 202044f7 branch mouse_combination_ui_timer + 1 
+0433 da4002de arg p_mouse_24g_start_pair_mode ,regb 
+0434 202044f7 branch mouse_combination_ui_timer + 1 
 
 p_mouse_le_battery_updata_timer:
-0433 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0434 c39d8000 rtnbit1 mouse_enable_le_battery_service_cancel 
-0435 2020451f branch mouse_le_battery_updata_timer 
+0435 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0436 c39d8000 rtnbit1 mouse_enable_le_battery_service_cancel 
+0437 2020451f branch mouse_le_battery_updata_timer 
 
 p_mouse_le_send_conn_param_update_timer:
-0436 da604c70 arg mem_mouse_le_send_conn_param_update_timer ,regc 
-0437 da40436c arg mouse_updata_le_param ,regb 
-0438 2020318a branch timer_single_step 
+0438 da604c70 arg mem_mouse_le_send_conn_param_update_timer ,regc 
+0439 da40436c arg mouse_updata_le_param ,regb 
+043a 2020318a branch timer_single_step 
 
 p_mouse_check_no_data_timeout_timer:
-0439 da604ab2 arg mem_mouse_no_data_timer ,regc 
-043a da40043c arg p_mouse_check_no_data_timeout ,regb 
-043b 20203191 branch timer_single_step_2b 
+043b da604ab2 arg mem_mouse_no_data_timer ,regc 
+043c da40043e arg p_mouse_check_no_data_timeout ,regb 
+043d 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-043c 6fe0c938 fetch 1 ,mem_device_flag 
-043d c00002ec beq mode_24g_device ,p_mouse_24g_hibernate_set 
-043e 2020431b branch mouse_disconnect 
+043e 6fe0c938 fetch 1 ,mem_device_flag 
+043f c00002ec beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0440 2020431b branch mouse_disconnect 
 
 p_mouse_start_discovery:
-043f 204004fc call p_mouse_sensor_powerdown 
-0440 204003b0 call p_mouse_device_discover_led_config 
-0441 204003fc call p_mouse_logo_led_off 
-0442 6fe1478c fetch 2 ,mem_ui_state_map 
-0443 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-0444 2040c581 call mouse_stop_le_adv ,true 
-0445 6fe1478c fetch 2 ,mem_ui_state_map 
-0446 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-0447 2040c322 call mouse_cancel_reconnect ,true 
-0448 58000000 setarg 0 
-0449 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
-044a 20404314 call mouse_bluetooth_fast_conn_disable 
-044b 6fe1478c fetch 2 ,mem_ui_state_map 
-044c c2858455 bbit1 ui_state_ble_adv ,p_mouse_start_discovery_norandom 
-044d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-044e c3040455 bbit0 mouse_enable_ble_random_addre ,p_mouse_start_discovery_norandom 
-044f 68494997 fetcht 2 ,mem_random_addr_increase_count 
-0450 18408401 increase 1 ,temp 
-0451 60494997 storet 2 ,mem_random_addr_increase_count 
-0452 6049437b storet 2 ,mem_le_lap + 1 
-0453 180a7e00 random pdata 
-0454 67e0c37a store 1 ,mem_le_lap 
+0441 204003b0 call p_mouse_device_discover_led_config 
+0442 204004fd call p_mouse_sensor_powerdown 
+0443 204003fe call p_mouse_logo_led_off 
+0444 6fe1478c fetch 2 ,mem_ui_state_map 
+0445 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+0446 2040c581 call mouse_stop_le_adv ,true 
+0447 6fe1478c fetch 2 ,mem_ui_state_map 
+0448 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+0449 2040c322 call mouse_cancel_reconnect ,true 
+044a 58000000 setarg 0 
+044b 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
+044c 20404314 call mouse_bluetooth_fast_conn_disable 
+044d 6fe1478c fetch 2 ,mem_ui_state_map 
+044e c2858457 bbit1 ui_state_ble_adv ,p_mouse_start_discovery_norandom 
+044f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0450 c3040457 bbit0 mouse_enable_ble_random_addre ,p_mouse_start_discovery_norandom 
+0451 68494997 fetcht 2 ,mem_random_addr_increase_count 
+0452 18408401 increase 1 ,temp 
+0453 60494997 storet 2 ,mem_random_addr_increase_count 
+0454 6049437b storet 2 ,mem_le_lap + 1 
+0455 180a7e00 random pdata 
+0456 67e0c37a store 1 ,mem_le_lap 
 
 p_mouse_start_discovery_norandom:
-0455 6fe1cac9 fetch 3 ,mem_mouse_le_lap_temp 
-0456 67e1c37d store 3 ,mem_le_lap + 3 
-0457 20403225 call app_lpm_mult_disable 
-0458 6fe14791 fetch 2 ,mem_discovery_timeout 
-0459 67e14ac2 store 2 ,mem_mouse_discovery_timer 
-045a 7000bd06 jam 6 ,mem_connection_options 
-045b 58000000 setarg 0 
-045c 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-045d 67e0cb77 store 1 ,mem_mouse_direct_timer 
-045e 67e0cac4 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
-045f 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-0460 67e0caac store 1 ,mem_mouse_clear_sensor_data_flag 
-0461 d8e00002 arg mouse_store_eeprom_flag ,queue 
-0462 204046f0 call mouse_enable_function_flag 
-0463 204046e4 call mouse_bt_discovery_button_down_disable 
-0464 20400466 call p_mouse_select_bt_adv_mode 
-0465 20600000 rtn 
-
-p_mouse_select_bt_adv_mode:
-0466 6fe0c938 fetch 1 ,mem_device_flag 
-0467 c000846a beq mode_bt_device1 ,p_mouse_current_classic_mode 
-0468 c001046b beq mode_bt_device2 ,p_mouse_current_ble_mode 
-0469 20600000 rtn 
-
-p_mouse_current_classic_mode:
-046a 202078c4 branch check_51cmd_start_discovery 
-
-p_mouse_current_ble_mode:
-046b 202043df branch mouse_check_51cmd_adv 
+0457 6fe1cac9 fetch 3 ,mem_mouse_le_lap_temp 
+0458 67e1c37d store 3 ,mem_le_lap + 3 
+0459 20403225 call app_lpm_mult_disable 
+045a 6fe14791 fetch 2 ,mem_discovery_timeout 
+045b 67e14ac2 store 2 ,mem_mouse_discovery_timer 
+045c 7000bd06 jam 6 ,mem_connection_options 
+045d 58000000 setarg 0 
+045e 67e14ab2 store 2 ,mem_mouse_no_data_timer 
+045f 67e0cb77 store 1 ,mem_mouse_direct_timer 
+0460 67e0cac4 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+0461 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
+0462 67e0caac store 1 ,mem_mouse_clear_sensor_data_flag 
+0463 d8e00002 arg mouse_store_eeprom_flag ,queue 
+0464 204046f0 call mouse_enable_function_flag 
+0465 204046e4 call mouse_bt_discovery_button_down_disable 
+0466 6fe0cbb3 fetch 1 ,mem_mouse_bluetooth_type 
+0467 2feffe01 isolate1 mode_4_mouse ,pdata 
+0468 2040c3df call mouse_check_51cmd_adv ,true 
+0469 6fe0cbb3 fetch 1 ,mem_mouse_bluetooth_type 
+046a 2feffe00 isolate1 mode_3_mouse ,pdata 
+046b 2040f8c4 call check_51cmd_start_discovery ,true 
+046c 20600000 rtn 
 
 p_mouse_stop_discovery:
-046c 58000000 setarg 0 
-046d 67e14ac2 store 2 ,mem_mouse_discovery_timer 
-046e 20204577 branch mouse_stop_discovery + 1 
+046d 58000000 setarg 0 
+046e 67e14ac2 store 2 ,mem_mouse_discovery_timer 
+046f 20204577 branch mouse_stop_discovery + 1 
 
 p_ui_timer_check:
-046f 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0470 245a7861 ncall ui_timer_init ,blank 
-0471 704be200 jam 0 ,mem_power_on_flag 
-0472 20207851 branch ui_timer_check + 1 
+0470 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0471 245a7861 ncall ui_timer_init ,blank 
+0472 704be200 jam 0 ,mem_power_on_flag 
+0473 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-0473 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-0474 1fe20c00 copy pdata ,contr 
-0475 efe08006 ifetch 1 ,contr 
-0476 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-0477 1fe1040f and pdata ,0x0f ,temp 
-0478 1ff1fe00 rshift4 pdata ,pdata 
-0479 c004847b beq hid_type_set_idle ,p_hid_rx_process_handshake 
-047a 20204d93 branch hid_rx_process + 7 
+0474 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0475 1fe20c00 copy pdata ,contr 
+0476 efe08006 ifetch 1 ,contr 
+0477 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+0478 1fe1040f and pdata ,0x0f ,temp 
+0479 1ff1fe00 rshift4 pdata ,pdata 
+047a c004847c beq hid_type_set_idle ,p_hid_rx_process_handshake 
+047b 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-047b da200001 arg 1 ,rega 
-047c 20404dc0 call hid_malloc_tx_buff 
-047d 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-047e e7e10005 istore 2 ,contw 
-047f 58000000 setarg 0 
-0480 e7e08005 istore 1 ,contw 
-0481 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0482 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0483 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0484 67e0c4e2 store 1 ,mem_hid_control_state 
-0485 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-0486 20207871 branch ui_ipc_send_event 
+047c da200001 arg 1 ,rega 
+047d 20404dc0 call hid_malloc_tx_buff 
+047e 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+047f e7e10005 istore 2 ,contw 
+0480 58000000 setarg 0 
+0481 e7e08005 istore 1 ,contw 
+0482 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0483 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0484 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0485 67e0c4e2 store 1 ,mem_hid_control_state 
+0486 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0487 20207871 branch ui_ipc_send_event 
 
 p_send_lmp:
-0487 78547c00 disable user 
-0488 204059e6 call lmo_fifo_process 
-0489 6fe08049 fetch 1 ,mem_lmp_to_send 
-048a 207a0000 rtn blank 
-048b c283d730 bbit1 7 ,send_lmp_escape 
+0488 78547c00 disable user 
+0489 204059e6 call lmo_fifo_process 
+048a 6fe08049 fetch 1 ,mem_lmp_to_send 
+048b 207a0000 rtn blank 
+048c c283d730 bbit1 7 ,send_lmp_escape 
 
 p_send_lmp0:
-048c c003848e beq lmp_detach ,p_send_lmp_detach 
-048d 20205701 branch send_lmp0 
+048d c003848f beq lmp_detach ,p_send_lmp_detach 
+048e 20205701 branch send_lmp0 
 
 p_send_lmp_detach:
-048e 2040585d call send_lmp_detach 
-048f 70007378 jam 120 ,mem_conn_timer 
-0490 20600000 rtn 
+048f 2040585d call send_lmp_detach 
+0490 70007378 jam 120 ,mem_conn_timer 
+0491 20600000 rtn 
 
 p_le_slave_match:
-0491 6fe0c3dd fetch 1 ,mem_le_md_count 
-0492 1fe0fe01 pincrease 1 
-0493 67e0c3dd store 1 ,mem_le_md_count 
-0494 c006165a beq le_md_max_count ,le_slave_cont 
-0495 2040191b call le_acknowledge 
-0496 2040196a call le_prepare_tx 
-0497 6fe082bd fetch 1 ,mem_le_tx_phy 
-0498 2040168b call le_enable_phy_by_pdata 
-0499 20401838 call le_transmit 
-049a 20201655 branch le_slave_match + 10 
+0492 6fe0c3dd fetch 1 ,mem_le_md_count 
+0493 1fe0fe01 pincrease 1 
+0494 67e0c3dd store 1 ,mem_le_md_count 
+0495 c006165a beq le_md_max_count ,le_slave_cont 
+0496 2040191b call le_acknowledge 
+0497 2040196a call le_prepare_tx 
+0498 6fe082bd fetch 1 ,mem_le_tx_phy 
+0499 2040168b call le_enable_phy_by_pdata 
+049a 20401838 call le_transmit 
+049b 20201655 branch le_slave_match + 10 
 
 p_le_slave_unsync:
-049b 20400e80 call end_of_packet 
-049c 20201661 branch le_slave_unsync + 1 
+049c 20400e80 call end_of_packet 
+049d 20201661 branch le_slave_unsync + 1 
 
 p_le_parse_l2cap:
-049d efe10006 ifetch 2 ,contr 
-049e c00204a0 beq le_l2cap_cid_att ,p_le_parse_att 
-049f 202019e4 branch le_parse_l2cap + 10 
+049e efe10006 ifetch 2 ,contr 
+049f c00204a1 beq le_l2cap_cid_att ,p_le_parse_att 
+04a0 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-04a0 efe18006 ifetch 3 ,contr 
-04a1 67e1c436 store 3 ,mem_le_att_opcode 
-04a2 c00504a5 beq attop_read_request ,p_le_parse_att_read_request 
-04a3 c00904b4 beq attop_write_request ,p_le_parse_att_write_request 
-04a4 20201cd3 branch le_parse_att + 2 
+04a1 efe18006 ifetch 3 ,contr 
+04a2 67e1c436 store 3 ,mem_le_att_opcode 
+04a3 c00504a6 beq attop_read_request ,p_le_parse_att_read_request 
+04a4 c00904b5 beq attop_write_request ,p_le_parse_att_write_request 
+04a5 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-04a5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-04a6 c31d9de7 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
-04a7 20401e8d call le_check_encrypt_state 
-04a8 68494437 fetcht 2 ,mem_le_att_handle 
-04a9 6fe0c3c0 fetch 1 ,mem_le_configuration 
-04aa c28184af bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+04a6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+04a7 c31d9de7 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
+04a8 20401e8d call le_check_encrypt_state 
+04a9 68494437 fetcht 2 ,mem_le_att_handle 
+04aa 6fe0c3c0 fetch 1 ,mem_le_configuration 
+04ab c28184b0 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-04ab 6fe14437 fetch 2 ,mem_le_att_handle 
-04ac c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-04ad 68494437 fetcht 2 ,mem_le_att_handle 
-04ae 20201deb branch le_send_att_read_response 
+04ac 6fe14437 fetch 2 ,mem_le_att_handle 
+04ad c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+04ae 68494437 fetcht 2 ,mem_le_att_handle 
+04af 20201deb branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-04af 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-04b0 98467c00 isub temp ,null 
-04b1 242284ab nbranch p_le_send_att_read_response ,zero 
-04b2 243404ab nbranch p_le_send_att_read_response ,user 
-04b3 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+04b0 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+04b1 98467c00 isub temp ,null 
+04b2 242284ac nbranch p_le_send_att_read_response ,zero 
+04b3 243404ac nbranch p_le_send_att_read_response ,user 
+04b4 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-04b4 18c22200 copy contr ,rega 
-04b5 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-04b6 1fe0a5fd add pdata ,-3 ,regb 
-04b7 20401a25 call le_writeatt_cb 
-04b8 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-04b9 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-04ba 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-04bb 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-04bc 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-04bd c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-04be 5800001a setarg 0x001a 
-04bf 68494437 fetcht 2 ,mem_le_att_handle 
-04c0 98467c00 isub temp ,null 
-04c1 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-04c2 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+04b5 18c22200 copy contr ,rega 
+04b6 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+04b7 1fe0a5fd add pdata ,-3 ,regb 
+04b8 20401a25 call le_writeatt_cb 
+04b9 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+04ba c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+04bb 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+04bc 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+04bd 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+04be c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+04bf 5800001a setarg 0x001a 
+04c0 68494437 fetcht 2 ,mem_le_att_handle 
+04c1 98467c00 isub temp ,null 
+04c2 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+04c3 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_g24_lpm_wait:
-04c3 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-04c4 243a7e56 nbranch disable_user ,blank 
-04c5 78347c00 enable user 
-04c6 20401465 call lpo_calibration 
-04c7 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-04c8 203a7e56 branch disable_user ,blank 
-04c9 6fe0c099 fetch 1 ,mem_lpm_mode 
-04ca 203a7e56 branch disable_user ,blank 
-04cb 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-04cc 247a0000 nrtn blank 
-04cd 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-04ce c000fe56 beq g24_tx_timer_int_enable ,disable_user 
-04cf 20600000 rtn 
+04c4 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+04c5 243a7e56 nbranch disable_user ,blank 
+04c6 78347c00 enable user 
+04c7 20401465 call lpo_calibration 
+04c8 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+04c9 203a7e56 branch disable_user ,blank 
+04ca 6fe0c099 fetch 1 ,mem_lpm_mode 
+04cb 203a7e56 branch disable_user ,blank 
+04cc 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+04cd 247a0000 nrtn blank 
+04ce 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+04cf c000fe56 beq g24_tx_timer_int_enable ,disable_user 
+04d0 20600000 rtn 
 
 p_mouse_motion:
-04d0 78547c00 disable user 
-04d1 58000000 setarg 0 
-04d2 67e348d1 store 6 ,mem_mouse_x 
-04d3 20404240 call mouse_check_sensor_data 
-04d4 2040408e call mouse_dpi_config 
-04d5 20403f7e call mouse_zwheel 
-04d6 20403f83 call mouse_t_zwheel 
-04d7 20400503 call p_mouse_key 
-04d8 6fe0c8d0 fetch 1 ,mem_mouse_key 
-04d9 1fe17e1f and_into 0x1f ,pdata 
-04da 67e0c8d0 store 1 ,mem_mouse_key 
-04db 243404e2 nbranch p_mouse_low_power_led_delay_off ,user 
-04dc 204004df call p_mouse_work_state_flag 
-04dd 204004e7 call p_mouse_drawing_optima 
-04de 20204544 branch mouse_no_data_timer_init 
+04d1 78547c00 disable user 
+04d2 58000000 setarg 0 
+04d3 67e348d1 store 6 ,mem_mouse_x 
+04d4 20404240 call mouse_check_sensor_data 
+04d5 2040408e call mouse_dpi_config 
+04d6 20403f7e call mouse_zwheel 
+04d7 20403f83 call mouse_t_zwheel 
+04d8 20400504 call p_mouse_key 
+04d9 6fe0c8d0 fetch 1 ,mem_mouse_key 
+04da 1fe17e1f and_into 0x1f ,pdata 
+04db 67e0c8d0 store 1 ,mem_mouse_key 
+04dc 243404e3 nbranch p_mouse_low_power_led_delay_off ,user 
+04dd 204004e0 call p_mouse_work_state_flag 
+04de 204004e8 call p_mouse_drawing_optima 
+04df 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_work_state_flag:
-04df 704c9800 jam 0 ,mem_low_power_led_flag 
-04e0 704c9900 jam 0 ,mem_24g_low_power_stop_blink 
-04e1 20600000 rtn 
+04e0 704c9800 jam 0 ,mem_low_power_led_flag 
+04e1 704c9900 jam 0 ,mem_24g_low_power_stop_blink 
+04e2 20600000 rtn 
 
 p_mouse_low_power_led_delay_off:
-04e2 20404728 call mouse_drawing_optima_init 
-04e3 6fe0cc99 fetch 1 ,mem_24g_low_power_stop_blink 
-04e4 247a0000 nrtn blank 
-04e5 704c996a jam 0x6a ,mem_24g_low_power_stop_blink 
-04e6 20600000 rtn 
+04e3 20404728 call mouse_drawing_optima_init 
+04e4 6fe0cc99 fetch 1 ,mem_24g_low_power_stop_blink 
+04e5 247a0000 nrtn blank 
+04e6 704c996a jam 0x6a ,mem_24g_low_power_stop_blink 
+04e7 20600000 rtn 
 
 p_mouse_drawing_optima:
-04e7 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04e8 c1018000 rtneq p3212 
-04e9 2020471a branch mouse_drawing_optima 
+04e8 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04e9 c1018000 rtneq p3212 
+04ea 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-04ea 20403f65 call mouse_sensor_spi_init 
-04eb 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04ec c00584f1 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-04ed 20404232 call mouse_sensor_reset 
-04ee da604aa3 arg mem_sensor_poweron_init ,regc 
-04ef 2040422b call mouse_sensor_wr_seq 
-04f0 2020408e branch mouse_dpi_config 
+04eb 20403f65 call mouse_sensor_spi_init 
+04ec 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04ed c00584f2 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+04ee 20404232 call mouse_sensor_reset 
+04ef da604aa3 arg mem_sensor_poweron_init ,regc 
+04f0 2040422b call mouse_sensor_wr_seq 
+04f1 2020408e branch mouse_dpi_config 
 
 p_mouse_ka8g2_sensor_init:
-04f1 204004f8 call p_mouse_ka8g2_sensor_reset 
-04f2 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-04f3 2040422b call mouse_sensor_wr_seq 
-04f4 2020408e branch mouse_dpi_config 
+04f2 204004f9 call p_mouse_ka8g2_sensor_reset 
+04f3 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+04f4 2040422b call mouse_sensor_wr_seq 
+04f5 2020408e branch mouse_dpi_config 
 
 p_mouse_sensor_reset:
-04f5 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04f6 c00584f8 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-04f7 20204232 branch mouse_sensor_reset 
+04f6 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04f7 c00584f9 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+04f8 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-04f8 58009706 setarg 0x9706 
-04f9 20405b0c call twspi_write 
-04fa 20002ee0 nop 12000 
-04fb 20600000 rtn 
+04f9 58009706 setarg 0x9706 
+04fa 20405b0c call twspi_write 
+04fb 20002ee0 nop 12000 
+04fc 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-04fc 204041a7 call mouse_init_sunt 
-04fd 20403f65 call mouse_sensor_spi_init 
-04fe 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04ff c0058501 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-0500 2020423e branch mouse_sensor_powerdown_end 
+04fd 204041a7 call mouse_init_sunt 
+04fe 20403f65 call mouse_sensor_spi_init 
+04ff 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0500 c0058502 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+0501 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-0501 58001f06 setarg 0x1f06 
-0502 20205b0c branch twspi_write 
+0502 58001f06 setarg 0x1f06 
+0503 20205b0c branch twspi_write 
 
 p_mouse_key:
-0503 20400505 call p_mouse_check_key_gpio 
-0504 202040dd branch mouse_key + 1 
+0504 20400506 call p_mouse_check_key_gpio 
+0505 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-0505 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0506 245a4121 ncall mouse_check_key_gpio_once ,blank 
-0507 da200000 arg 0 ,rega 
-0508 2040050e call p_mouse_check_lkey_gpio 
-0509 20400513 call p_mouse_check_rkey_gpio 
-050a 20400518 call p_mouse_check_mkey_gpio 
-050b 2040051d call p_mouse_check_bkkey_gpio 
-050c 2040052a call p_mouse_check_fwkey_gpio 
-050d 2020411e branch mouse_check_key_gpio_next 
+0506 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0507 245a4121 ncall mouse_check_key_gpio_once ,blank 
+0508 da200000 arg 0 ,rega 
+0509 2040050f call p_mouse_check_lkey_gpio 
+050a 20400514 call p_mouse_check_rkey_gpio 
+050b 20400519 call p_mouse_check_mkey_gpio 
+050c 2040051e call p_mouse_check_bkkey_gpio 
+050d 2040052b call p_mouse_check_fwkey_gpio 
+050e 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-050e 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-050f 20400537 call p_mouse_gpio_config_output_high 
-0510 20404124 call mouse_check_lkey_gpio 
-0511 6848c918 fetcht 1 ,mem_lbutton_gpio 
-0512 20203f56 branch mouse_gpio_config_input_pu 
+050f 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+0510 20400538 call p_mouse_gpio_config_output_high 
+0511 20404124 call mouse_check_lkey_gpio 
+0512 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0513 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-0513 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-0514 20400537 call p_mouse_gpio_config_output_high 
-0515 2040412a call mouse_check_rkey_gpio 
-0516 6848c919 fetcht 1 ,mem_rbutton_gpio 
-0517 20203f56 branch mouse_gpio_config_input_pu 
+0514 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+0515 20400538 call p_mouse_gpio_config_output_high 
+0516 2040412a call mouse_check_rkey_gpio 
+0517 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0518 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-0518 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-0519 20400537 call p_mouse_gpio_config_output_high 
-051a 20404130 call mouse_check_mkey_gpio 
-051b 6848c91a fetcht 1 ,mem_mbutton_gpio 
-051c 20203f56 branch mouse_gpio_config_input_pu 
+0519 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+051a 20400538 call p_mouse_gpio_config_output_high 
+051b 20404130 call mouse_check_mkey_gpio 
+051c 6848c91a fetcht 1 ,mem_mbutton_gpio 
+051d 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-051d 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-051e c17f8000 rtneq gpio_disable 
-051f 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-0520 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-0521 1fe22600 copy pdata ,regc 
-0522 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0523 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0524 c07f8526 beq gpio_disable ,p_mouse_3io6key_bk_check 
-0525 2020413e branch mouse_check_bkkey_gpio_next 
+051e 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+051f c17f8000 rtneq gpio_disable 
+0520 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+0521 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+0522 1fe22600 copy pdata ,regc 
+0523 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0524 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0525 c07f8527 beq gpio_disable ,p_mouse_3io6key_bk_check 
+0526 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-0526 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0527 2040053a call p_mouse_gpio_config_output_low 
-0528 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0529 2020414b branch mouse_3io6key_bk_check 
+0527 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0528 2040053b call p_mouse_gpio_config_output_low 
+0529 6848c90d fetcht 1 ,mem_bk_button_gpio 
+052a 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-052a 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-052b c17f8000 rtneq gpio_disable 
-052c 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-052d 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-052e 1fe22600 copy pdata ,regc 
-052f 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0530 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0531 c07f8533 beq gpio_disable ,p_mouse_3io6key_fw_check 
-0532 20204157 branch mouse_check_fwkey_gpio_next 
+052b 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+052c c17f8000 rtneq gpio_disable 
+052d 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+052e 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+052f 1fe22600 copy pdata ,regc 
+0530 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0531 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0532 c07f8534 beq gpio_disable ,p_mouse_3io6key_fw_check 
+0533 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-0533 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0534 2040053a call p_mouse_gpio_config_output_low 
-0535 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0536 20204164 branch mouse_3io6key_fw_check 
+0534 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0535 2040053b call p_mouse_gpio_config_output_low 
+0536 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0537 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-0537 c17f8000 rtneq gpio_disable 
-0538 d840003f arg gpcfg_output_high ,temp 
-0539 20206093 branch gpio_config_function_int 
+0538 c17f8000 rtneq gpio_disable 
+0539 d840003f arg gpcfg_output_high ,temp 
+053a 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-053a c17f8000 rtneq gpio_disable 
-053b d840003e arg gpcfg_output_low ,temp 
-053c 20206093 branch gpio_config_function_int 
+053b c17f8000 rtneq gpio_disable 
+053c d840003e arg gpcfg_output_low ,temp 
+053d 20206093 branch gpio_config_function_int 
 
 p_mouse_idle:
-053d 20404990 call mouse_low_voltage_led_no_enter_lpm 
-053e 20407936 call ui_check_paring_button 
-053f 20400542 call p_mouse_dpi_check 
-0540 20400554 call p_mouse_dpi_another_gpio_check 
-0541 2020464f branch mouse_idle + 4 
+053e 20404990 call mouse_low_voltage_led_no_enter_lpm 
+053f 20407936 call ui_check_paring_button 
+0540 20400543 call p_mouse_dpi_check 
+0541 20400555 call p_mouse_dpi_another_gpio_check 
+0542 2020464f branch mouse_idle + 4 
 
 p_mouse_dpi_check:
-0542 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0543 c17f8000 rtneq gpio_disable 
-0544 da200000 arg 0 ,rega 
-0545 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-0546 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0547 20400549 call p_mouse_dpi_key_check 
-0548 2020402f branch mouse_dpi_check_next 
+0543 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0544 c17f8000 rtneq gpio_disable 
+0545 da200000 arg 0 ,rega 
+0546 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+0547 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0548 2040054a call p_mouse_dpi_key_check 
+0549 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0549 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-054a c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-054b 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-054c 1fe22600 copy pdata ,regc 
-054d 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-054e c07f8550 beq gpio_disable ,p_mouse_3io6key_dpi_check 
-054f 2020403f branch mouse_dpi_key_check_next 
+054a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+054b c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+054c 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+054d 1fe22600 copy pdata ,regc 
+054e 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+054f c07f8551 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+0550 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-0550 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0551 2040053a call p_mouse_gpio_config_output_low 
-0552 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0553 20204195 branch mouse_3io6key_check 
+0551 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0552 2040053b call p_mouse_gpio_config_output_low 
+0553 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0554 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-0554 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0555 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-0556 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-0557 243a055d nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+0555 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0556 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+0557 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+0558 243a055e nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-0558 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0559 20400537 call p_mouse_gpio_config_output_high 
-055a 20400568 call p_mouse_dpi_another_check 
-055b 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-055c 20203f56 branch mouse_gpio_config_input_pu 
+0559 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+055a 20400538 call p_mouse_gpio_config_output_high 
+055b 20400569 call p_mouse_dpi_another_check 
+055c 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+055d 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-055d 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-055e 793ffe07 set0 gpio_active_bit ,pdata 
-055f 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-0560 2040053a call p_mouse_gpio_config_output_low 
-0561 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0562 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0563 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0564 20400581 call p_mouse_check_key_connect_vin_new 
-0565 2040056c call p_mouse_dpi_another_state_check 
-0566 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0567 20203f56 branch mouse_gpio_config_input_pu 
+055e 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+055f 793ffe07 set0 gpio_active_bit ,pdata 
+0560 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+0561 2040053b call p_mouse_gpio_config_output_low 
+0562 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0563 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0564 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0565 20400582 call p_mouse_check_key_connect_vin_new 
+0566 2040056d call p_mouse_dpi_another_state_check 
+0567 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0568 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_check:
-0568 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0569 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-056a 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-056b 20400577 call p_mouse_check_key_connect_gnd_new 
+0569 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+056a 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+056b 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+056c 20400578 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-056c 67e0cc3c store 1 ,mem_dpi_another_press_status 
-056d 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-056e 203a0573 branch p_mouse_dpi_another_up ,blank 
+056d 67e0cc3c store 1 ,mem_dpi_another_press_status 
+056e 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+056f 203a0574 branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-056f 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0570 c1008000 rtneq dpi_button_state_down 
-0571 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0572 20204069 branch mouse_dpi_process 
+0570 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0571 c1008000 rtneq dpi_button_state_down 
+0572 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0573 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-0573 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0574 c1000000 rtneq dpi_button_state_up 
-0575 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-0576 20600000 rtn 
+0574 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0575 c1000000 rtneq dpi_button_state_up 
+0576 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0577 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-0577 1fe3fe00 lshift pdata ,pdata 
-0578 1fe22400 copy pdata ,regb 
-0579 20406059 call gpio_get_bit 
-057a 7920a400 setflag true ,0 ,regb 
-057b 1a417e07 and regb ,0x07 ,pdata 
-057c 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-057d 18420e00 copy temp ,queue 
-057e c003858c beq 0x07 ,p_mouse_key_press 
-057f c000058e beq 0x00 ,p_mouse_key_release 
-0580 20600000 rtn 
+0578 1fe3fe00 lshift pdata ,pdata 
+0579 1fe22400 copy pdata ,regb 
+057a 20406059 call gpio_get_bit 
+057b 7920a400 setflag true ,0 ,regb 
+057c 1a417e07 and regb ,0x07 ,pdata 
+057d 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+057e 18420e00 copy temp ,queue 
+057f c003858d beq 0x07 ,p_mouse_key_press 
+0580 c000058f beq 0x00 ,p_mouse_key_release 
+0581 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-0581 1fe3fe00 lshift pdata ,pdata 
-0582 1fe22400 copy pdata ,regb 
-0583 20403f54 call mouse_gpio_config_input_pd 
-0584 20406059 call gpio_get_bit 
-0585 7920a400 setflag true ,0 ,regb 
-0586 1a417e07 and regb ,0x07 ,pdata 
-0587 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0588 18420e00 copy temp ,queue 
-0589 c003858c beq 0x07 ,p_mouse_key_press 
-058a c000058e beq 0x00 ,p_mouse_key_release 
-058b 20600000 rtn 
+0582 1fe3fe00 lshift pdata ,pdata 
+0583 1fe22400 copy pdata ,regb 
+0584 20403f54 call mouse_gpio_config_input_pd 
+0585 20406059 call gpio_get_bit 
+0586 7920a400 setflag true ,0 ,regb 
+0587 1a417e07 and regb ,0x07 ,pdata 
+0588 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0589 18420e00 copy temp ,queue 
+058a c003858d beq 0x07 ,p_mouse_key_press 
+058b c000058f beq 0x00 ,p_mouse_key_release 
+058c 20600000 rtn 
 
 p_mouse_key_press:
-058c 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-058d 20600000 rtn 
+058d 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+058e 20600000 rtn 
 
 p_mouse_key_release:
-058e 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-058f 20600000 rtn 
+058f 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+0590 20600000 rtn 
 
 p_mouse_dpi_process:
-0590 20404072 call mouse_dpi_ghost_check 
-0591 20740000 rtn user 
-0592 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0593 1fe20400 copy pdata ,temp 
-0594 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0595 c29e859c bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-0596 18427e00 copy temp ,pdata 
-0597 1fe0fe01 increase 1 ,pdata 
-0598 1fe17e03 and pdata ,0x03 ,pdata 
+0591 20404072 call mouse_dpi_ghost_check 
+0592 20740000 rtn user 
+0593 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0594 1fe20400 copy pdata ,temp 
+0595 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0596 c29e859d bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+0597 18427e00 copy temp ,pdata 
+0598 1fe0fe01 increase 1 ,pdata 
+0599 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0599 67e0c992 store 1 ,mem_mouse_dpi 
-059a 20404095 call mouse_seting_dpi 
-059b 202045ee branch mouse_store_device_info_delay 
+059a 67e0c992 store 1 ,mem_mouse_dpi 
+059b 20404095 call mouse_seting_dpi 
+059c 202045ee branch mouse_store_device_info_delay 
 
 p_mouse_double_dpi_check:
-059c 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-059d 243a05b9 nbranch p_mouse_another_dpi_button_down ,blank 
+059d 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+059e 243a05ba nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-059e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-059f c28e05ad bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-05a0 18427e00 copy temp ,pdata 
-05a1 c1008000 rtneq mouse_dpi_level2 
+059f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05a0 c28e05ae bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+05a1 18427e00 copy temp ,pdata 
+05a2 c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-05a2 c00005a9 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-05a3 c00105a7 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-05a4 20600000 rtn 
+05a3 c00005aa beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+05a4 c00105a8 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+05a5 20600000 rtn 
 
 p_mouse_dpi_level_1:
-05a5 58000002 setarg 2 
-05a6 20200599 branch p_mouse_dpi_store 
+05a6 58000002 setarg 2 
+05a7 2020059a branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-05a7 58000000 setarg 0 
-05a8 20200599 branch p_mouse_dpi_store 
+05a8 58000000 setarg 0 
+05a9 2020059a branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-05a9 58000001 setarg 1 
-05aa 20200599 branch p_mouse_dpi_store 
+05aa 58000001 setarg 1 
+05ab 2020059a branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-05ab 58000003 setarg 3 
-05ac 20200599 branch p_mouse_dpi_store 
+05ac 58000003 setarg 3 
+05ad 2020059a branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-05ad 18427e00 copy temp ,pdata 
-05ae c1008000 rtneq mouse_dpi_level2 
-05af c00005a9 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-05b0 c00105ab beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-05b1 c00185a7 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-05b2 20600000 rtn 
+05ae 18427e00 copy temp ,pdata 
+05af c1008000 rtneq mouse_dpi_level2 
+05b0 c00005aa beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+05b1 c00105ac beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+05b2 c00185a8 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+05b3 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-05b3 18427e00 copy temp ,pdata 
-05b4 c1010000 rtneq mouse_dpi_level3 
-05b5 c00005ab beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-05b6 c00085a7 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-05b7 c00185a5 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-05b8 20600000 rtn 
+05b4 18427e00 copy temp ,pdata 
+05b5 c1010000 rtneq mouse_dpi_level3 
+05b6 c00005ac beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+05b7 c00085a8 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+05b8 c00185a6 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+05b9 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-05b9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05ba c28e05b3 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-05bb 18427e00 copy temp ,pdata 
-05bc c1010000 rtneq mouse_dpi_level3 
+05ba 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05bb c28e05b4 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+05bc 18427e00 copy temp ,pdata 
+05bd c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-05bd c00005a5 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-05be c00085a7 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-05bf 20600000 rtn 
+05be c00005a6 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+05bf c00085a8 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+05c0 20600000 rtn 
 
 p_power_ctrl_start:
-05c0 6fe1478c fetch 2 ,mem_ui_state_map 
-05c1 c3858000 rtnbit1 ui_state_ble_adv 
-05c2 c3838000 rtnbit1 ui_state_bt_reconnect 
-05c3 c3830000 rtnbit1 ui_state_bt_discovery 
-05c4 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-05c5 204025cb call rssi_average 
-05c6 6048c8c7 storet 1 ,mem_rssi_avg_received 
-05c7 202026f6 branch power_ctrl_rssi_avg_compare 
+05c1 6fe1478c fetch 2 ,mem_ui_state_map 
+05c2 c3858000 rtnbit1 ui_state_ble_adv 
+05c3 c3838000 rtnbit1 ui_state_bt_reconnect 
+05c4 c3830000 rtnbit1 ui_state_bt_discovery 
+05c5 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+05c6 204025cb call rssi_average 
+05c7 6048c8c7 storet 1 ,mem_rssi_avg_received 
+05c8 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/ramcode.rom	(revision 3381)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/ramcode.rom	(working copy)
@@ -16,36 +16,36 @@
 c0648219
 c0650263
 c06600d7
-c06704d0
-c0678590
+c06704d1
+c0678591
 c068034b
-c0688505
+c0688506
 c0698039
-c06a04ea
+c06a04eb
 c06b0285
 c06c8378
-c06d043f
-c06d846c
-c06f053d
+c06d0441
+c06d846d
+c06f053e
 c06f8063
 c070805b
 c0710057
-c0740473
+c0740474
 2020137c
-c00d0487
+c00d0488
 c0100055
 c01980b7
 c01a00bc
-c043846f
-c0508491
-c051849b
-c060049d
+c0438470
+c0508492
+c051849c
+c060049e
 c06e8329
 c07102f5
 c07482fd
 c07501bf
-c07604c3
-c07685c0
+c07604c4
+c07685c1
 2020137c
 20800000
 204030f3
@@ -73,10 +73,10 @@
 20407d12
 da604c9c
 202041c9
-20403d5a
 20400050
 6fe0cc42
-243a03b0
+245a03b0
+20403d5a
 20600000
 6fe0c482
 c17f8000
@@ -248,7 +248,7 @@
 20403d8a
 20404728
 2040017a
-204004fc
+204004fd
 20203bc9
 6fe44bab
 c41e8000
@@ -321,7 +321,7 @@
 20403d13
 20400166
 20400233
-204003fc
+204003fe
 204003e8
 20400373
 204003a6
@@ -444,7 +444,7 @@
 67e0cba4
 6fe14bbc
 67e14ab2
-202004fc
+202004fd
 20402631
 2434026b
 204001cf
@@ -501,7 +501,7 @@
 20207d66
 6fe44bab
 c4140000
-20200542
+20200543
 6fe0c91b
 c17f8000
 da200000
@@ -532,12 +532,12 @@
 58000006
 20405b0d
 c281be23
-204004f5
-204004fc
+204004f6
+204004fd
 20203e23
 204042e9
 20407fdc
-204003fc
+204003fe
 20400373
 20404015
 6848c910
@@ -545,7 +545,7 @@
 6848c910
 20406042
 6fe0c920
-20400537
+20400538
 d8400003
 20403f56
 20400263
@@ -615,14 +615,14 @@
 20406050
 20403f88
 6fe0c91f
-20400537
+20400538
 20203e44
 6fe0c8a7
 205a0277
 6fe0c8bd
 c1008000
 2040269f
-204004c3
+204004c4
 24740000
 204026c4
 6fe0cbe1
@@ -753,7 +753,7 @@
 58000000
 67e3c8d0
 704be101
-204004fc
+204004fd
 20200270
 70488b00
 6fe14beb
@@ -855,7 +855,7 @@
 6fe0cba7
 247a0000
 6fe0cbc1
-203a0407
+203a0409
 67e0cba8
 20600000
 6fe14ac2
@@ -891,19 +891,19 @@
 2040232b
 20402556
 204047cd
-20400404
+20400406
 204003b8
 2040407c
 204044cc
-2040041c
+2040041e
 204044ff
 20400393
 20400399
 2040039d
 20404512
-20400433
+20400435
 20404515
-20400436
+20400438
 2040452a
 2040452d
 20404532
@@ -911,7 +911,7 @@
 20404022
 20404547
 204003eb
-20400439
+2040043b
 202003a1
 da400396
 da604c99
@@ -930,7 +930,7 @@
 da604c1d
 da405d8c
 2020318a
-204004ea
+204004eb
 202003ae
 6fe0cc46
 67e0cc47
@@ -1007,8 +1007,10 @@
 247a0000
 6fe14887
 247a0000
+6fe14ac2
+247a0000
 6fe44bab
-c2820400
+c2820402
 704c9b00
 6fe14ab2
 207a0000
@@ -1017,7 +1019,7 @@
 98460400
 6fe14bee
 98467e00
-202103fe
+20210400
 6848cbed
 20206065
 6848cbed
@@ -1025,9 +1027,9 @@
 6fe0cc9b
 247a0000
 704c9b01
-202003fc
+202003fe
 da604ba8
-da400407
+da400409
 2020318a
 6fe0c927
 c001c8f2
@@ -1041,8 +1043,8 @@
 6848c992
 18408402
 18467c03
-20410416
-2441041a
+20410418
+2441041c
 202048ff
 6fe44bab
 c40e0000
@@ -1051,11 +1053,11 @@
 184085fd
 20600000
 6fe0c938
-c0000422
+c0000424
 6fe44bab
 c41a8000
 6848cbca
-20200425
+20200427
 6fe44bab
 c4190000
 6848cbcb
@@ -1064,9 +1066,9 @@
 1fe17e07
 6848cb9d
 98467c00
-2022842c
+2022842e
 202044eb
-20400431
+20400433
 6fe0cb9f
 c1008000
 704b9f01
@@ -1080,14 +1082,14 @@
 da40436c
 2020318a
 da604ab2
-da40043c
+da40043e
 20203191
 6fe0c938
 c00002ec
 2020431b
-204004fc
 204003b0
-204003fc
+204004fd
+204003fe
 6fe1478c
 2feffe0b
 2040c581
@@ -1098,9 +1100,9 @@
 67e14af2
 20404314
 6fe1478c
-c2858455
+c2858457
 6fe44bab
-c3040455
+c3040457
 68494997
 18408401
 60494997
@@ -1122,14 +1124,13 @@
 d8e00002
 204046f0
 204046e4
-20400466
-20600000
-6fe0c938
-c000846a
-c001046b
+6fe0cbb3
+2feffe01
+2040c3df
+6fe0cbb3
+2feffe00
+2040f8c4
 20600000
-202078c4
-202043df
 58000000
 67e14ac2
 20204577
@@ -1143,7 +1144,7 @@
 67e0c5f5
 1fe1040f
 1ff1fe00
-c004847b
+c004847c
 20204d93
 da200001
 20404dc0
@@ -1162,7 +1163,7 @@
 6fe08049
 207a0000
 c283d730
-c003848e
+c003848f
 20205701
 2040585d
 70007378
@@ -1180,27 +1181,27 @@
 20400e80
 20201661
 efe10006
-c00204a0
+c00204a1
 202019e4
 efe18006
 67e1c436
-c00504a5
-c00904b4
+c00504a6
+c00904b5
 20201cd3
 6fe44bab
 c31d9de7
 20401e8d
 68494437
 6fe0c3c0
-c28184af
+c28184b0
 6fe14437
 c0181ec8
 68494437
 20201deb
 6fe143d1
 98467c00
-242284ab
-243404ab
+242284ac
+243404ac
 20201e10
 18c22200
 6fe143d4
@@ -1237,13 +1238,13 @@
 2040408e
 20403f7e
 20403f83
-20400503
+20400504
 6fe0c8d0
 1fe17e1f
 67e0c8d0
-243404e2
-204004df
-204004e7
+243404e3
+204004e0
+204004e8
 20204544
 704c9800
 704c9900
@@ -1258,17 +1259,17 @@
 2020471a
 20403f65
 6fe0c927
-c00584f1
+c00584f2
 20404232
 da604aa3
 2040422b
 2020408e
-204004f8
+204004f9
 da604be3
 2040422b
 2020408e
 6fe0c927
-c00584f8
+c00584f9
 20204232
 58009706
 20405b0c
@@ -1277,33 +1278,33 @@
 204041a7
 20403f65
 6fe0c927
-c0058501
+c0058502
 2020423e
 58001f06
 20205b0c
-20400505
+20400506
 202040dd
 6fe0cbe1
 245a4121
 da200000
-2040050e
-20400513
-20400518
-2040051d
-2040052a
+2040050f
+20400514
+20400519
+2040051e
+2040052b
 2020411e
 6fe0c918
-20400537
+20400538
 20404124
 6848c918
 20203f56
 6fe0c919
-20400537
+20400538
 2040412a
 6848c919
 20203f56
 6fe0c91a
-20400537
+20400538
 20404130
 6848c91a
 20203f56
@@ -1314,10 +1315,10 @@
 1fe22600
 6848c90d
 6fe0c910
-c07f8526
+c07f8527
 2020413e
 6fe0c90d
-2040053a
+2040053b
 6848c90d
 2020414b
 6fe0c90e
@@ -1327,10 +1328,10 @@
 1fe22600
 6848c90e
 6fe0c910
-c07f8533
+c07f8534
 20204157
 6fe0c90e
-2040053a
+2040053b
 6848c90e
 20204164
 c17f8000
@@ -1341,54 +1342,54 @@
 20206093
 20404990
 20407936
-20400542
-20400554
+20400543
+20400555
 2020464f
 6fe0c90f
 c17f8000
 da200000
 704b9605
 6848c90f
-20400549
+2040054a
 2020402f
 6fe44bab
 c2964048
 6fe0cb93
 1fe22600
 6fe0c910
-c07f8550
+c07f8551
 2020403f
 6fe0c90f
-2040053a
+2040053b
 6848c90f
 20204195
 6fe44bab
 c41e8000
 6fe0cc3a
-243a055d
+243a055e
 6fe0cc3b
-20400537
-20400568
+20400538
+20400569
 6848cc3b
 20203f56
 6fe0cc3b
 793ffe07
 67e0cc3b
-2040053a
+2040053b
 704c3f00
 6848cc3b
 6fe0cc3c
-20400581
-2040056c
+20400582
+2040056d
 6848cc3b
 20203f56
 704c3f00
 6848cc3b
 6fe0cc3c
-20400577
+20400578
 67e0cc3c
 6fe0cc3e
-203a0573
+203a0574
 6fe0cc3d
 c1008000
 704c3d01
@@ -1404,8 +1405,8 @@
 1a417e07
 6848cc3f
 18420e00
-c003858c
-c000058e
+c003858d
+c000058f
 20600000
 1fe3fe00
 1fe22400
@@ -1415,8 +1416,8 @@
 1a417e07
 6848cc3f
 18420e00
-c003858c
-c000058e
+c003858d
+c000058f
 20600000
 704c3e01
 20600000
@@ -1427,7 +1428,7 @@
 6fe0c992
 1fe20400
 6fe44bab
-c29e859c
+c29e859d
 18427e00
 1fe0fe01
 1fe17e03
@@ -1435,40 +1436,40 @@
 20404095
 202045ee
 6fe0cc3e
-243a05b9
+243a05ba
 6fe44bab
-c28e05ad
+c28e05ae
 18427e00
 c1008000
-c00005a9
-c00105a7
+c00005aa
+c00105a8
 20600000
 58000002
-20200599
+2020059a
 58000000
-20200599
+2020059a
 58000001
-20200599
+2020059a
 58000003
-20200599
+2020059a
 18427e00
 c1008000
-c00005a9
-c00105ab
-c00185a7
+c00005aa
+c00105ac
+c00185a8
 20600000
 18427e00
 c1010000
-c00005ab
-c00085a7
-c00185a5
+c00005ac
+c00085a8
+c00185a6
 20600000
 6fe44bab
-c28e05b3
+c28e05b4
 18427e00
 c1010000
-c00005a5
-c00085a7
+c00005a6
+c00085a8
 20600000
 6fe1478c
 c3858000
Index: output/sched.rom
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/sched.rom	(revision 3381)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/output/sched.rom	(working copy)
@@ -141,7 +141,7 @@
 #bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
 #bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
 #bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
-02
+22
 
 #mouse flag byte7
 #bit0 MOUSE_ENABLE_AUTO_24G_PARING
@@ -176,8 +176,8 @@
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
 
-mem_bk_button_gpio:ff
-mem_fw_button_gpio:ff
+mem_bk_button_gpio:0b
+mem_fw_button_gpio:0c
 mem_dpi_button_gpio:0d
 mem_dpi_another_button_gpio:ff
 mem_matrix_public_gpio:ff
@@ -192,7 +192,7 @@
 mem_lbutton_gpio:0b
 mem_rbutton_gpio:0c
 mem_mbutton_gpio:0d
-mem_config_select_device_button_gpio:0c
+mem_config_select_device_button_gpio:0a
 mem_whee_ta_data_gpio:ff
 mem_whee_tb_data_gpio:ff
 mem_device_switch_gpio:ff
@@ -207,7 +207,7 @@
 mem_sensor_angle_switch:00	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_config_sensor_dpi:00		#00--1200   01--1600
 
-mem_mouse_logo_led_gpio:ff
+mem_mouse_logo_led_gpio:03
 mem_mouse_logo_led_on_time_init:58 02	#1min
 
 
@@ -218,8 +218,8 @@
 mem_mouse_multi_led_powon_timer_init:14	#2s
 mem_mouse_multi_led_blink_timer_init:02
 mem_mouse_1io2led_multi_24gled:08
-mem_mouse_1io2led_multi_bt1led:0a
-mem_mouse_1io2led_multi_bt2led:8a
+mem_mouse_1io2led_multi_bt1led:88
+mem_mouse_1io2led_multi_bt2led:ff
 #1io2led multi end
 
 mem_usb_offline_check_gpio:ff
@@ -241,7 +241,7 @@
 
 
 mem_mouse_bluetooth_type:03	#03 bt3.0+ble   #02 ble   #01 bt3.0
-mem_device_number:03  #max device number   value:01,02,03
+mem_device_number:02  #max device number   value:01,02,03
 
 mem_device_flag:
 00
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/program/patch.prog	(revision 3381)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/program/patch.prog	(working copy)
@@ -4,8 +4,8 @@
 //define UART_LOG
 //define RSSI_SORT
 define SELECT_ANGLE
-//define IO1LED
-//define BT_2MODE_2CHANNEL
+// define IO1LED
+define BT_2MODE_2CHANNEL
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
 	beq patch00_3,p_main_loop
@@ -101,10 +101,10 @@
 	branch mouse_mx8650_init_param+4
 
 p_mouse_start_reconnect_device:
-	call mouse_start_reconnect_device+1
 	call p_mouse_judge_reconnect_state
 	fetch 1,mem_mouse_bt_led_recon_effect_flag
-	nbranch p_mouse_device_discover_led_config,blank
+	ncall p_mouse_device_discover_led_config,blank
+	call mouse_start_reconnect_device+1
 	rtn
 
 p_mouse_judge_reconnect_state:
@@ -378,8 +378,24 @@
 	call mouse_drawing_optima_init
 	call p_mouse_cb_fuction
 	call p_mouse_sensor_powerdown
+	// call p_discover_blink_led
 	branch mouse_init+8
 
+// p_discover_blink_led:
+// 	fetch 1,mem_device_flag
+// 	rtn blank
+// 	arg mem_device1_type,rega
+// 	fetch 1,mem_device_flag
+// 	increase -1,pdata
+// 	mul32 pdata,29,pdata
+// 	iadd rega,rega
+// 	ifetch 1,rega
+// 	store 1,mem_xrecord_mode
+// 	rtnne 0xff
+// 	fetch 1,mem_mouse_bt_led_recon_effect_flag
+// 	nbranch p_mouse_device_discover_led_config,blank
+// 	rtn
+
 p_mouse_double_dpi_judge:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	rtnbit0 MOUSE_ENABLE_DOUBLE_DPI_KEY
@@ -1466,6 +1482,8 @@
 	nrtn blank
 	fetch 2,mem_24g_reconn_timeout
 	nrtn blank
+	fetch 2,mem_mouse_discovery_timer
+	nrtn blank
 	
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit1 MOUSE_LOW_VOLTAGE_FLAG,p_mouse_low_power_logo_off
@@ -1578,8 +1596,8 @@
 	branch mouse_disconnect	
 
 p_mouse_start_discovery:
-	call p_mouse_sensor_powerdown
 	call p_mouse_device_discover_led_config
+	call p_mouse_sensor_powerdown
 	call p_mouse_logo_led_off
 	fetch 2,mem_ui_state_map
 	isolate1 UI_STATE_BLE_ADV,pdata
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/sched/mouse.dat	(revision 3381)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_multi_toggle/sched/mouse.dat	(working copy)
@@ -74,7 +74,7 @@
 #bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
 #bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
 #bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
-02
+22
 
 #mouse flag byte7
 #bit0 MOUSE_ENABLE_AUTO_24G_PARING
@@ -109,8 +109,8 @@
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
 
-mem_bk_button_gpio:ff
-mem_fw_button_gpio:ff
+mem_bk_button_gpio:0b
+mem_fw_button_gpio:0c
 mem_dpi_button_gpio:0d
 mem_dpi_another_button_gpio:ff
 mem_matrix_public_gpio:ff
@@ -125,7 +125,7 @@
 mem_lbutton_gpio:0b
 mem_rbutton_gpio:0c
 mem_mbutton_gpio:0d
-mem_config_select_device_button_gpio:0c
+mem_config_select_device_button_gpio:0a
 mem_whee_ta_data_gpio:ff
 mem_whee_tb_data_gpio:ff
 mem_device_switch_gpio:ff
@@ -140,7 +140,7 @@
 mem_sensor_angle_switch:00	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_config_sensor_dpi:00		#00--1200   01--1600
 
-mem_mouse_logo_led_gpio:ff
+mem_mouse_logo_led_gpio:03
 mem_mouse_logo_led_on_time_init:58 02	#1min
 
 
@@ -151,8 +151,8 @@
 mem_mouse_multi_led_powon_timer_init:14	#2s
 mem_mouse_multi_led_blink_timer_init:02
 mem_mouse_1io2led_multi_24gled:08
-mem_mouse_1io2led_multi_bt1led:0a
-mem_mouse_1io2led_multi_bt2led:8a
+mem_mouse_1io2led_multi_bt1led:88
+mem_mouse_1io2led_multi_bt2led:ff
 #1io2led multi end
 
 mem_usb_offline_check_gpio:ff
@@ -174,7 +174,7 @@
 
 
 mem_mouse_bluetooth_type:03	#03 bt3.0+ble   #02 ble   #01 bt3.0
-mem_device_number:03  #max device number   value:01,02,03
+mem_device_number:02  #max device number   value:01,02,03
 
 mem_device_flag:
 00
