Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/output/eeprom.dat	(revision 1652)
+++ /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ae
+b6
 18
 c2
 84
@@ -75,11 +75,11 @@
 c0
 67
 04
-b2
+b4
 c0
 67
 85
-b0
+b2
 c0
 68
 03
@@ -87,11 +87,11 @@
 c0
 68
 84
-e3
+e5
 c0
 6a
 04
-c3
+c5
 c0
 6b
 02
@@ -111,7 +111,7 @@
 c0
 6f
 05
-56
+58
 c0
 6f
 80
@@ -187,7 +187,7 @@
 c0
 76
 86
-23
+25
 20
 20
 13
@@ -1155,7 +1155,7 @@
 20
 40
 04
-d5
+d7
 20
 20
 3b
@@ -1463,7 +1463,7 @@
 20
 40
 06
-1f
+21
 20
 40
 3f
@@ -1811,7 +1811,7 @@
 20
 20
 04
-d5
+d7
 20
 40
 26
@@ -2059,7 +2059,7 @@
 20
 40
 05
-e0
+e2
 20
 40
 26
@@ -2113,8 +2113,8 @@
 c8
 a4
 c2
-81
-26
+80
+a6
 79
 20
 40
@@ -2344,16 +2344,16 @@
 1e
 00
 00
-6f
-e0
+68
+48
 c9
 13
 20
 40
 3f
 56
-6f
-e0
+68
+48
 c9
 14
 20
@@ -2375,11 +2375,11 @@
 20
 40
 04
-ce
+d0
 20
 40
 04
-d5
+d7
 20
 20
 3e
@@ -2423,7 +2423,7 @@
 20
 40
 05
-16
+18
 d8
 40
 00
@@ -2434,8 +2434,8 @@
 56
 20
 40
-3e
-40
+02
+85
 20
 40
 60
@@ -2611,7 +2611,7 @@
 20
 40
 05
-16
+18
 20
 20
 3e
@@ -2655,7 +2655,7 @@
 20
 40
 06
-1f
+21
 6f
 e0
 cb
@@ -3086,16 +3086,16 @@
 ab
 c3
 17
-83
-0b
+c8
+39
 6f
 e0
 cb
 b4
 c0
 00
-83
-0b
+c8
+39
 20
 20
 48
@@ -3106,16 +3106,16 @@
 ab
 c3
 17
-83
-0b
+c8
+39
 c2
 89
-83
-0b
+c8
+39
 c2
 89
-03
-0b
+48
+39
 20
 20
 48
@@ -3159,7 +3159,7 @@
 20
 40
 04
-d5
+d7
 20
 20
 02
@@ -4802,6 +4802,14 @@
 56
 6f
 e0
+cb
+e1
+24
+7a
+00
+00
+6f
+e0
 c8
 bd
 c0
@@ -4843,7 +4851,7 @@
 20
 40
 04
-dc
+de
 6f
 e0
 c8
@@ -4863,7 +4871,7 @@
 20
 40
 04
-c0
+c2
 20
 20
 45
@@ -4891,7 +4899,7 @@
 c0
 05
 84
-ca
+cc
 20
 40
 42
@@ -4911,7 +4919,7 @@
 20
 40
 04
-d1
+d3
 da
 60
 4b
@@ -4931,7 +4939,7 @@
 c0
 05
 84
-d1
+d3
 20
 20
 42
@@ -4967,7 +4975,7 @@
 c0
 05
 84
-da
+dc
 20
 20
 42
@@ -4983,7 +4991,7 @@
 20
 40
 05
-1c
+1e
 6f
 e0
 cc
@@ -4991,7 +4999,7 @@
 24
 3a
 05
-33
+35
 6f
 e0
 cc
@@ -4999,11 +5007,11 @@
 24
 3a
 05
-32
+34
 20
 40
 04
-e3
+e5
 20
 20
 40
@@ -5023,27 +5031,27 @@
 20
 40
 04
-ed
+ef
 20
 40
 04
-f2
+f4
 20
 40
 04
-f7
+f9
 20
 40
 04
-fc
+fe
 20
 40
 05
-09
+0b
 20
 40
 05
-1c
+1e
 20
 20
 41
@@ -5055,7 +5063,7 @@
 20
 40
 05
-16
+18
 20
 40
 41
@@ -5075,7 +5083,7 @@
 20
 40
 05
-16
+18
 20
 40
 41
@@ -5095,7 +5103,7 @@
 20
 40
 05
-16
+18
 20
 40
 41
@@ -5139,7 +5147,7 @@
 c0
 7f
 85
-05
+07
 20
 20
 41
@@ -5151,7 +5159,7 @@
 20
 40
 05
-19
+1b
 68
 48
 c9
@@ -5191,7 +5199,7 @@
 c0
 7f
 85
-12
+14
 20
 20
 41
@@ -5203,7 +5211,7 @@
 20
 40
 05
-19
+1b
 68
 48
 c9
@@ -5255,7 +5263,7 @@
 24
 3a
 05
-29
+2b
 68
 48
 cc
@@ -5323,15 +5331,15 @@
 20
 20
 05
-26
+28
 c0
 02
 05
-4b
+4d
 20
 40
 05
-4e
+50
 6f
 e2
 4c
@@ -5367,19 +5375,19 @@
 c0
 00
 05
-41
+43
 c0
 00
 85
-44
+46
 c0
 01
 05
-47
+49
 c0
 01
 85
-49
+4b
 20
 60
 00
@@ -5415,7 +5423,7 @@
 20
 20
 05
-42
+44
 70
 4c
 32
@@ -5423,7 +5431,7 @@
 20
 20
 05
-45
+47
 70
 4c
 32
@@ -5451,7 +5459,7 @@
 24
 41
 05
-53
+55
 20
 60
 00
@@ -5479,11 +5487,11 @@
 20
 40
 05
-5b
+5d
 20
 40
 05
-6f
+71
 20
 20
 46
@@ -5519,7 +5527,7 @@
 20
 40
 05
-64
+66
 20
 20
 40
@@ -5547,7 +5555,7 @@
 c0
 7f
 85
-6b
+6d
 20
 20
 40
@@ -5559,7 +5567,7 @@
 20
 40
 05
-19
+1b
 68
 48
 c9
@@ -5583,7 +5591,7 @@
 24
 3a
 05
-78
+7a
 6f
 e0
 cc
@@ -5591,11 +5599,11 @@
 20
 40
 05
-16
+18
 20
 40
 05
-88
+8a
 68
 48
 cc
@@ -5619,7 +5627,7 @@
 20
 40
 05
-19
+1b
 70
 4c
 3f
@@ -5635,11 +5643,11 @@
 20
 40
 05
-a1
+a3
 20
 40
 05
-8c
+8e
 68
 48
 cc
@@ -5683,7 +5691,7 @@
 20
 40
 05
-97
+99
 67
 e0
 cc
@@ -5695,7 +5703,7 @@
 20
 3a
 05
-93
+95
 6f
 e0
 cc
@@ -5759,11 +5767,11 @@
 c0
 03
 85
-ac
+ae
 c0
 00
 05
-ae
+b0
 20
 60
 00
@@ -5803,11 +5811,11 @@
 c0
 03
 85
-ac
+ae
 c0
 00
 05
-ae
+b0
 20
 60
 00
@@ -5851,7 +5859,7 @@
 c2
 9e
 85
-bc
+be
 18
 42
 7e
@@ -5883,7 +5891,7 @@
 24
 3a
 05
-d9
+db
 6f
 e4
 4b
@@ -5891,7 +5899,7 @@
 c2
 8e
 05
-cd
+cf
 18
 42
 7e
@@ -5903,11 +5911,11 @@
 c0
 00
 05
-c9
+cb
 c0
 01
 05
-c7
+c9
 20
 60
 00
@@ -5919,7 +5927,7 @@
 20
 20
 05
-b9
+bb
 58
 00
 00
@@ -5927,7 +5935,7 @@
 20
 20
 05
-b9
+bb
 58
 00
 00
@@ -5935,7 +5943,7 @@
 20
 20
 05
-b9
+bb
 58
 00
 00
@@ -5943,7 +5951,7 @@
 20
 20
 05
-b9
+bb
 18
 42
 7e
@@ -5955,15 +5963,15 @@
 c0
 00
 05
-c9
+cb
 c0
 01
 05
-cb
+cd
 c0
 01
 85
-c7
+c9
 20
 60
 00
@@ -5979,15 +5987,15 @@
 c0
 00
 05
-cb
+cd
 c0
 00
 85
-c7
+c9
 c0
 01
 85
-c5
+c7
 20
 60
 00
@@ -5999,7 +6007,7 @@
 c2
 8e
 05
-d3
+d5
 18
 42
 7e
@@ -6011,11 +6019,11 @@
 c0
 00
 05
-c5
+c7
 c0
 00
 85
-c7
+c9
 20
 60
 00
@@ -6027,7 +6035,7 @@
 c0
 00
 86
-1b
+1d
 6f
 e0
 cc
@@ -6035,7 +6043,7 @@
 20
 3a
 06
-1b
+1d
 1b
 22
 7e
@@ -6103,7 +6111,7 @@
 20
 22
 85
-f8
+fa
 18
 40
 84
@@ -6163,7 +6171,7 @@
 20
 21
 06
-0f
+11
 1f
 e6
 7e
@@ -6199,7 +6207,7 @@
 24
 21
 06
-19
+1b
 60
 49
 c8
@@ -6239,7 +6247,7 @@
 20
 21
 06
-19
+1b
 60
 49
 c8
@@ -6320,8 +6328,8 @@
 20
 26
 f6
-89
-68
+6b
+24
 aa
 55
 40
@@ -6744,7 +6752,7 @@
 06
 0a
 00
-02
+64
 00
 70
 17
@@ -7653,24 +7661,16 @@
 02
 40
 00
-f2
+fa
 1d
 55
 aa
 aa
 55
-d1
-8d
-83
-b8
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+3b
+8e
+9c
+d6
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-b1
-f5
+27
+dd
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/output/program.lis	(revision 1652)
+++ /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/output/program.lis	(working copy)
@@ -17,16 +17,16 @@
 000e c0648253 beq patch19_1 ,p_mouse_setgpio_hibernate 
 000f c0650285 beq patch19_2 ,p_mouse_lpm_before_common 
 0010 c06600c7 beq patch19_4 ,p_mouse_adc_read_start 
-0011 c06704b2 beq patch19_6 ,p_mouse_motion 
-0012 c06785b0 beq patch19_7 ,p_mouse_dpi_process 
+0011 c06704b4 beq patch19_6 ,p_mouse_motion 
+0012 c06785b2 beq patch19_7 ,p_mouse_dpi_process 
 0013 c0680360 beq patch1a_0 ,p_mouse_seting_dpi 
-0014 c06884e3 beq patch1a_1 ,p_mouse_check_key_gpio 
-0015 c06a04c3 beq patch1a_4 ,p_mouse_sensor_poweron 
+0014 c06884e5 beq patch1a_1 ,p_mouse_check_key_gpio 
+0015 c06a04c5 beq patch1a_4 ,p_mouse_sensor_poweron 
 0016 c06b02a9 beq patch1a_6 ,p_mouse_priority_bb_event 
 0017 c06c8371 beq patch1b_1 ,p_mouse_bb_event_timer 
 0018 c06d0446 beq patch1b_2 ,p_mouse_start_discovery 
 0019 c06d8450 beq patch1b_3 ,p_mouse_stop_discovery 
-001a c06f0556 beq patch1b_6 ,p_mouse_idle 
+001a c06f0558 beq patch1b_6 ,p_mouse_idle 
 001b c06f8051 beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001c c0708049 beq patch1c_1 ,p_mouse_led_off 
 001d c0710045 beq patch1c_2 ,p_mouse_led_on 
@@ -47,7 +47,7 @@
 002a c074831e beq patch3d_1 ,p_g24_reconn_dispatch 
 002b c07501c4 beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002c c07604a7 beq patch3d_4 ,p_g24_lpm_wait 
-002d c0768623 beq patch3d_5 ,p_power_ctrl_start 
+002d c0768625 beq patch3d_5 ,p_power_ctrl_start 
 002e 2020137c branch loop 
 
 p_soft_reset:
@@ -365,7 +365,7 @@
 011c 20403d8a call mouse_usb_check_enable 
 011d 20404728 call mouse_drawing_optima_init 
 011e 2040017d call p_mouse_cb_fuction 
-011f 204004d5 call p_mouse_sensor_powerdown 
+011f 204004d7 call p_mouse_sensor_powerdown 
 0120 20203bc9 branch mouse_init + 8 
 
 p_mouse_g24_report_setting:
@@ -468,7 +468,7 @@
 0169 20758000 rtn wake 
 016a 20402607 call g24_transmit_init 
 016b 204022ff call g24_chmap_param_init 
-016c 2040061f call p_send_time_long_wake 
+016c 20400621 call p_send_time_long_wake 
 016d 20403f1e call mouse_gpio_init 
 016e 2040013e call p_mouse_le_name_load 
 016f 20403d13 call mouse_param_init 
@@ -577,7 +577,7 @@
 01c0 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 01c1 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 01c2 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-01c3 202004d5 branch p_mouse_sensor_powerdown 
+01c3 202004d7 branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 01c4 20402631 call g24_txdata_prep 
@@ -663,7 +663,7 @@
 01fe c000a651 beq no_ack_24g ,g24_transmit_no_ack 
 01ff 242c0205 nbranch p_g24_retransmit ,sync 
 0200 24378205 nbranch p_g24_retransmit ,user3 
-0201 204005e0 call p_send_time_check 
+0201 204005e2 call p_send_time_check 
 0202 20402672 call g24_ackpayload_parse 
 0203 20400242 call p_mouse_wakeup_24g 
 0204 20202651 branch g24_transmit_no_ack 
@@ -679,7 +679,7 @@
 020c 1fe0fe01 increase 1 ,pdata 
 020d 67e148a3 store 2 ,mem_24g_txfail_cnt 
 020e 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-020f c2812679 bbit1 2 ,g24_tx_attempt_fail 
+020f c280a679 bbit1 1 ,g24_tx_attempt_fail 
 0210 2040267e call g24_transmit_hop_process 
 0211 6fe14c6b fetch 2 ,mem_retransmit 
 0212 1fe0fe01 increase 1 ,pdata 
@@ -763,17 +763,17 @@
 0248 c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
 
 p_mouse_wheel_set_wakeup:
-0249 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+0249 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
 024a 20403f56 call mouse_gpio_config_input_pu 
-024b 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+024b 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
 024c 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_app_enter_hibernate:
 024d 58000006 setarg pan_reg_config 
 024e 20405b0d call twspi_read 
 024f c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0250 204004ce call p_mouse_sensor_reset 
-0251 204004d5 call p_mouse_sensor_powerdown 
+0250 204004d0 call p_mouse_sensor_reset 
+0251 204004d7 call p_mouse_sensor_powerdown 
 0252 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -786,10 +786,10 @@
 0259 6848c910 fetcht 1 ,mem_matrix_public_gpio 
 025a 20406042 call gpio_clr_wake 
 025b 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-025c 20400516 call p_mouse_gpio_config_output_high 
+025c 20400518 call p_mouse_gpio_config_output_high 
 025d d8400003 arg 3 ,temp 
 025e 20403f56 call mouse_gpio_config_input_pu 
-025f 20403e40 call mouse_lpm_before_common 
+025f 20400285 call p_mouse_lpm_before_common 
 0260 20406082 call gpio_pd_idle 
 0261 204003fa call p_mouse_1io2led_all_off 
 0262 d8400013 arg 19 ,temp 
@@ -845,7 +845,7 @@
 0288 20406050 call gpio_config_input 
 0289 20403f88 call mouse_wheel_check 
 028a 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-028b 20400516 call p_mouse_gpio_config_output_high 
+028b 20400518 call p_mouse_gpio_config_output_high 
 028c 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -860,7 +860,7 @@
 0293 24740000 nrtn user 
 0294 204026c4 call g24_setgpio_lpm_before 
 0295 704c6d00 jam 0 ,mem_sleep_miss 
-0296 2040061f call p_send_time_long_wake 
+0296 20400621 call p_send_time_long_wake 
 0297 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
 0298 245a3e33 ncall mouse_setgpio_hibernate ,blank 
 0299 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
@@ -998,16 +998,16 @@
 
 p_mouse_24g_auto_pair_attempt_fail:
 0301 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0302 c317830b bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+0302 c317c839 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
 0303 6fe0cbb4 fetch 1 ,mem_device_number 
-0304 c000830b beq 1 ,p_mouse_24g_attempt_fail_enter_hibernate 
+0304 c000c839 beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
 0305 2020481a branch mouse_24g_first_bluetooth_reconnect 
 
 p_mouse_reconn_dongle_attempt_fail:
 0306 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0307 c317830b bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
-0308 c289830b bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
-0309 c289030b bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
+0307 c317c839 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+0308 c289c839 bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate 
+0309 c2894839 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
 030a 20204812 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_24g_attempt_fail_enter_hibernate:
@@ -1022,7 +1022,7 @@
 0311 58000000 setarg 0 
 0312 67e3c8d0 store 7 ,mem_mouse_key 
 0313 704be101 jam 1 ,mem_sensor_shutdown_flag 
-0314 204004d5 call p_mouse_sensor_powerdown 
+0314 204004d7 call p_mouse_sensor_powerdown 
 0315 20200292 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1597,528 +1597,530 @@
 04ac 203a7e56 branch disable_user ,blank 
 04ad 6fe0c099 fetch 1 ,mem_lpm_mode 
 04ae 203a7e56 branch disable_user ,blank 
-04af 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-04b0 c000fe56 beq g24_tx_timer_int_enable ,disable_user 
-04b1 20600000 rtn 
+04af 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+04b0 247a0000 nrtn blank 
+04b1 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+04b2 c000fe56 beq g24_tx_timer_int_enable ,disable_user 
+04b3 20600000 rtn 
 
 p_mouse_motion:
-04b2 78547c00 disable user 
-04b3 58000000 setarg 0 
-04b4 67e348d1 store 6 ,mem_mouse_x 
-04b5 20404240 call mouse_check_sensor_data 
-04b6 2040408e call mouse_dpi_config 
-04b7 20403f7e call mouse_zwheel 
-04b8 20403f83 call mouse_t_zwheel 
-04b9 204004dc call p_mouse_key 
-04ba 6fe0c8d0 fetch 1 ,mem_mouse_key 
-04bb 1fe17e1f and_into 0x1f ,pdata 
-04bc 67e0c8d0 store 1 ,mem_mouse_key 
-04bd 24344728 nbranch mouse_drawing_optima_init ,user 
-04be 204004c0 call p_mouse_drawing_optima 
-04bf 20204544 branch mouse_no_data_timer_init 
+04b4 78547c00 disable user 
+04b5 58000000 setarg 0 
+04b6 67e348d1 store 6 ,mem_mouse_x 
+04b7 20404240 call mouse_check_sensor_data 
+04b8 2040408e call mouse_dpi_config 
+04b9 20403f7e call mouse_zwheel 
+04ba 20403f83 call mouse_t_zwheel 
+04bb 204004de call p_mouse_key 
+04bc 6fe0c8d0 fetch 1 ,mem_mouse_key 
+04bd 1fe17e1f and_into 0x1f ,pdata 
+04be 67e0c8d0 store 1 ,mem_mouse_key 
+04bf 24344728 nbranch mouse_drawing_optima_init ,user 
+04c0 204004c2 call p_mouse_drawing_optima 
+04c1 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_drawing_optima:
-04c0 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04c1 c1018000 rtneq p3212 
-04c2 2020471a branch mouse_drawing_optima 
+04c2 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04c3 c1018000 rtneq p3212 
+04c4 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-04c3 20403f65 call mouse_sensor_spi_init 
-04c4 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04c5 c00584ca beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-04c6 20404232 call mouse_sensor_reset 
-04c7 da604aa3 arg mem_sensor_poweron_init ,regc 
-04c8 2040422b call mouse_sensor_wr_seq 
-04c9 2020408e branch mouse_dpi_config 
+04c5 20403f65 call mouse_sensor_spi_init 
+04c6 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04c7 c00584cc beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+04c8 20404232 call mouse_sensor_reset 
+04c9 da604aa3 arg mem_sensor_poweron_init ,regc 
+04ca 2040422b call mouse_sensor_wr_seq 
+04cb 2020408e branch mouse_dpi_config 
 
 p_mouse_ka8g2_sensor_init:
-04ca 204004d1 call p_mouse_ka8g2_sensor_reset 
-04cb da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-04cc 2040422b call mouse_sensor_wr_seq 
-04cd 2020408e branch mouse_dpi_config 
+04cc 204004d3 call p_mouse_ka8g2_sensor_reset 
+04cd da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+04ce 2040422b call mouse_sensor_wr_seq 
+04cf 2020408e branch mouse_dpi_config 
 
 p_mouse_sensor_reset:
-04ce 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04cf c00584d1 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-04d0 20204232 branch mouse_sensor_reset 
+04d0 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04d1 c00584d3 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+04d2 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-04d1 58009706 setarg 0x9706 
-04d2 20405b0c call twspi_write 
-04d3 20002ee0 nop 12000 
-04d4 20600000 rtn 
+04d3 58009706 setarg 0x9706 
+04d4 20405b0c call twspi_write 
+04d5 20002ee0 nop 12000 
+04d6 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-04d5 204041a7 call mouse_init_sunt 
-04d6 20403f65 call mouse_sensor_spi_init 
-04d7 6fe0c927 fetch 1 ,mem_config_sensor_type 
-04d8 c00584da beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-04d9 2020423e branch mouse_sensor_powerdown_end 
+04d7 204041a7 call mouse_init_sunt 
+04d8 20403f65 call mouse_sensor_spi_init 
+04d9 6fe0c927 fetch 1 ,mem_config_sensor_type 
+04da c00584dc beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+04db 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-04da 58001f06 setarg 0x1f06 
-04db 20205b0c branch twspi_write 
+04dc 58001f06 setarg 0x1f06 
+04dd 20205b0c branch twspi_write 
 
 p_mouse_key:
-04dc 2040051c call p_mouse_check_firekey_gpio 
-04dd 6fe0cc37 fetch 1 ,mem_fire_key_flag 
-04de 243a0533 nbranch p_fire_key_press ,blank 
-04df 6fe0cc32 fetch 1 ,mem_fire_key_status 
-04e0 243a0532 nbranch p_fire_key_process ,blank 
-04e1 204004e3 call p_mouse_check_key_gpio 
-04e2 202040dd branch mouse_key + 1 
+04de 2040051e call p_mouse_check_firekey_gpio 
+04df 6fe0cc37 fetch 1 ,mem_fire_key_flag 
+04e0 243a0535 nbranch p_fire_key_press ,blank 
+04e1 6fe0cc32 fetch 1 ,mem_fire_key_status 
+04e2 243a0534 nbranch p_fire_key_process ,blank 
+04e3 204004e5 call p_mouse_check_key_gpio 
+04e4 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-04e3 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-04e4 245a4121 ncall mouse_check_key_gpio_once ,blank 
-04e5 da200000 arg 0 ,rega 
-04e6 204004ed call p_mouse_check_lkey_gpio 
-04e7 204004f2 call p_mouse_check_rkey_gpio 
-04e8 204004f7 call p_mouse_check_mkey_gpio 
-04e9 204004fc call p_mouse_check_bkkey_gpio 
-04ea 20400509 call p_mouse_check_fwkey_gpio 
-04eb 2040051c call p_mouse_check_firekey_gpio 
-04ec 2020411e branch mouse_check_key_gpio_next 
+04e5 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+04e6 245a4121 ncall mouse_check_key_gpio_once ,blank 
+04e7 da200000 arg 0 ,rega 
+04e8 204004ef call p_mouse_check_lkey_gpio 
+04e9 204004f4 call p_mouse_check_rkey_gpio 
+04ea 204004f9 call p_mouse_check_mkey_gpio 
+04eb 204004fe call p_mouse_check_bkkey_gpio 
+04ec 2040050b call p_mouse_check_fwkey_gpio 
+04ed 2040051e call p_mouse_check_firekey_gpio 
+04ee 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-04ed 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-04ee 20400516 call p_mouse_gpio_config_output_high 
-04ef 20404124 call mouse_check_lkey_gpio 
-04f0 6848c918 fetcht 1 ,mem_lbutton_gpio 
-04f1 20203f56 branch mouse_gpio_config_input_pu 
+04ef 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+04f0 20400518 call p_mouse_gpio_config_output_high 
+04f1 20404124 call mouse_check_lkey_gpio 
+04f2 6848c918 fetcht 1 ,mem_lbutton_gpio 
+04f3 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-04f2 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-04f3 20400516 call p_mouse_gpio_config_output_high 
-04f4 2040412a call mouse_check_rkey_gpio 
-04f5 6848c919 fetcht 1 ,mem_rbutton_gpio 
-04f6 20203f56 branch mouse_gpio_config_input_pu 
+04f4 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+04f5 20400518 call p_mouse_gpio_config_output_high 
+04f6 2040412a call mouse_check_rkey_gpio 
+04f7 6848c919 fetcht 1 ,mem_rbutton_gpio 
+04f8 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-04f7 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-04f8 20400516 call p_mouse_gpio_config_output_high 
-04f9 20404130 call mouse_check_mkey_gpio 
-04fa 6848c91a fetcht 1 ,mem_mbutton_gpio 
-04fb 20203f56 branch mouse_gpio_config_input_pu 
+04f9 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+04fa 20400518 call p_mouse_gpio_config_output_high 
+04fb 20404130 call mouse_check_mkey_gpio 
+04fc 6848c91a fetcht 1 ,mem_mbutton_gpio 
+04fd 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-04fc 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-04fd c17f8000 rtneq gpio_disable 
-04fe 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-04ff 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-0500 1fe22600 copy pdata ,regc 
-0501 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0502 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0503 c07f8505 beq gpio_disable ,p_mouse_3io6key_bk_check 
-0504 2020413e branch mouse_check_bkkey_gpio_next 
+04fe 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+04ff c17f8000 rtneq gpio_disable 
+0500 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+0501 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+0502 1fe22600 copy pdata ,regc 
+0503 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0504 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0505 c07f8507 beq gpio_disable ,p_mouse_3io6key_bk_check 
+0506 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-0505 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0506 20400519 call p_mouse_gpio_config_output_low 
-0507 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0508 2020414b branch mouse_3io6key_bk_check 
+0507 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0508 2040051b call p_mouse_gpio_config_output_low 
+0509 6848c90d fetcht 1 ,mem_bk_button_gpio 
+050a 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-0509 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-050a c17f8000 rtneq gpio_disable 
-050b 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-050c 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-050d 1fe22600 copy pdata ,regc 
-050e 6848c90e fetcht 1 ,mem_fw_button_gpio 
-050f 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0510 c07f8512 beq gpio_disable ,p_mouse_3io6key_fw_check 
-0511 20204157 branch mouse_check_fwkey_gpio_next 
+050b 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+050c c17f8000 rtneq gpio_disable 
+050d 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+050e 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+050f 1fe22600 copy pdata ,regc 
+0510 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0511 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0512 c07f8514 beq gpio_disable ,p_mouse_3io6key_fw_check 
+0513 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-0512 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0513 20400519 call p_mouse_gpio_config_output_low 
-0514 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0515 20204164 branch mouse_3io6key_fw_check 
+0514 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0515 2040051b call p_mouse_gpio_config_output_low 
+0516 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0517 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-0516 c17f8000 rtneq gpio_disable 
-0517 d840003f arg gpcfg_output_high ,temp 
-0518 20206093 branch gpio_config_function_int 
+0518 c17f8000 rtneq gpio_disable 
+0519 d840003f arg gpcfg_output_high ,temp 
+051a 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0519 c17f8000 rtneq gpio_disable 
-051a d840003e arg gpcfg_output_low ,temp 
-051b 20206093 branch gpio_config_function_int 
+051b c17f8000 rtneq gpio_disable 
+051c d840003e arg gpcfg_output_low ,temp 
+051d 20206093 branch gpio_config_function_int 
 
 p_mouse_check_firekey_gpio:
-051c da400000 arg 0 ,regb 
-051d 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
-051e c17f8000 rtneq gpio_disable 
-051f 6fe0cc39 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
-0520 243a0529 nbranch p_mouse_check_firekey_connect_vin ,blank 
+051e da400000 arg 0 ,regb 
+051f 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
+0520 c17f8000 rtneq gpio_disable 
+0521 6fe0cc39 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
+0522 243a052b nbranch p_mouse_check_firekey_connect_vin ,blank 
 
 p_mouse_check_firekey_connect_gnd:
-0521 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-0522 20403f56 call mouse_gpio_config_input_pu 
 0523 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-0524 20406059 call gpio_get_bit 
-0525 7920a400 setflag true ,0 ,regb 
+0524 20403f56 call mouse_gpio_config_input_pu 
+0525 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+0526 20406059 call gpio_get_bit 
+0527 7920a400 setflag true ,0 ,regb 
 
 p_mouse_firekey_state_store:
-0526 1a427e00 copy regb ,pdata 
-0527 67e0cc37 store 1 ,mem_fire_key_flag 
-0528 20600000 rtn 
+0528 1a427e00 copy regb ,pdata 
+0529 67e0cc37 store 1 ,mem_fire_key_flag 
+052a 20600000 rtn 
 
 p_mouse_check_firekey_connect_vin:
-0529 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
-052a 793ffe07 set0 gpio_active_bit ,pdata 
-052b 67e0cc38 store 1 ,mem_firebutton_gpio 
-052c 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-052d 20403f54 call mouse_gpio_config_input_pd 
+052b 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
+052c 793ffe07 set0 gpio_active_bit ,pdata 
+052d 67e0cc38 store 1 ,mem_firebutton_gpio 
 052e 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-052f 20406059 call gpio_get_bit 
-0530 7d20a400 nsetflag true ,0 ,regb 
-0531 20200526 branch p_mouse_firekey_state_store 
+052f 20403f54 call mouse_gpio_config_input_pd 
+0530 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+0531 20406059 call gpio_get_bit 
+0532 7d20a400 nsetflag true ,0 ,regb 
+0533 20200528 branch p_mouse_firekey_state_store 
 
 p_fire_key_process:
-0532 c002054b beq 4 ,p_fire_key_process_end 
+0534 c002054d beq 4 ,p_fire_key_process_end 
 
 p_fire_key_press:
-0533 2040054e call p_firekey_clkn_bt_timer_check 
-0534 6fe24c33 fetch 4 ,mem_fire_key_delay 
-0535 d84000a0 arg 0xa0 ,temp 
-0536 98408400 iadd temp ,temp 
-0537 1c427e00 copy clkn_bt ,pdata 
-0538 98467c00 isub temp ,null 
-0539 24610000 nrtn positive 
-053a 67e24c33 store 4 ,mem_fire_key_delay 
-053b 6fe0cc32 fetch 1 ,mem_fire_key_status 
-053c c0000541 beq 0 ,p_fire_key_process_start 
-053d c0008544 beq 1 ,p_fire_key_process_release1 
-053e c0010547 beq 2 ,p_fire_key_process_start2 
-053f c0018549 beq 3 ,p_fire_key_process_release2 
-0540 20600000 rtn 
+0535 20400550 call p_firekey_clkn_bt_timer_check 
+0536 6fe24c33 fetch 4 ,mem_fire_key_delay 
+0537 d84000a0 arg 0xa0 ,temp 
+0538 98408400 iadd temp ,temp 
+0539 1c427e00 copy clkn_bt ,pdata 
+053a 98467c00 isub temp ,null 
+053b 24610000 nrtn positive 
+053c 67e24c33 store 4 ,mem_fire_key_delay 
+053d 6fe0cc32 fetch 1 ,mem_fire_key_status 
+053e c0000543 beq 0 ,p_fire_key_process_start 
+053f c0008546 beq 1 ,p_fire_key_process_release1 
+0540 c0010549 beq 2 ,p_fire_key_process_start2 
+0541 c001854b beq 3 ,p_fire_key_process_release2 
+0542 20600000 rtn 
 
 p_fire_key_process_start:
-0541 704c3201 jam 1 ,mem_fire_key_status 
+0543 704c3201 jam 1 ,mem_fire_key_status 
 
 p_fire_key_down:
-0542 7048d001 jam 1 ,mem_mouse_key 
-0543 20207e54 branch enable_user 
+0544 7048d001 jam 1 ,mem_mouse_key 
+0545 20207e54 branch enable_user 
 
 p_fire_key_process_release1:
-0544 704c3202 jam 2 ,mem_fire_key_status 
+0546 704c3202 jam 2 ,mem_fire_key_status 
 
 p_fire_key_release:
-0545 7048d000 jam 0 ,mem_mouse_key 
-0546 20207e54 branch enable_user 
+0547 7048d000 jam 0 ,mem_mouse_key 
+0548 20207e54 branch enable_user 
 
 p_fire_key_process_start2:
-0547 704c3203 jam 3 ,mem_fire_key_status 
-0548 20200542 branch p_fire_key_down 
+0549 704c3203 jam 3 ,mem_fire_key_status 
+054a 20200544 branch p_fire_key_down 
 
 p_fire_key_process_release2:
-0549 704c3200 jam 0 ,mem_fire_key_status 
-054a 20200545 branch p_fire_key_release 
+054b 704c3200 jam 0 ,mem_fire_key_status 
+054c 20200547 branch p_fire_key_release 
 
 p_fire_key_process_end:
-054b 704c3200 jam 0 ,mem_fire_key_status 
-054c 7048d000 jam 0 ,mem_mouse_key 
-054d 20600000 rtn 
+054d 704c3200 jam 0 ,mem_fire_key_status 
+054e 7048d000 jam 0 ,mem_mouse_key 
+054f 20600000 rtn 
 
 p_firekey_clkn_bt_timer_check:
-054e 684a4c33 fetcht 4 ,mem_fire_key_delay 
-054f 1c427e00 copy clkn_bt ,pdata 
-0550 98467c00 isub temp ,null 
-0551 24410553 ncall p_firekey_clkn_bt_timer_timeout ,positive 
-0552 20600000 rtn 
+0550 684a4c33 fetcht 4 ,mem_fire_key_delay 
+0551 1c427e00 copy clkn_bt ,pdata 
+0552 98467c00 isub temp ,null 
+0553 24410555 ncall p_firekey_clkn_bt_timer_timeout ,positive 
+0554 20600000 rtn 
 
 p_firekey_clkn_bt_timer_timeout:
-0553 58000000 setarg 0 
-0554 67e24c33 store 4 ,mem_fire_key_delay 
-0555 20600000 rtn 
+0555 58000000 setarg 0 
+0556 67e24c33 store 4 ,mem_fire_key_delay 
+0557 20600000 rtn 
 
 p_mouse_idle:
-0556 20404992 call mouse_low_voltage_led_no_enter_lpm + 2 
-0557 20407936 call ui_check_paring_button 
-0558 2040055b call p_mouse_dpi_check 
-0559 2040056f call p_mouse_dpi_another_gpio_check 
-055a 2020464f branch mouse_idle + 4 
+0558 20404992 call mouse_low_voltage_led_no_enter_lpm + 2 
+0559 20407936 call ui_check_paring_button 
+055a 2040055d call p_mouse_dpi_check 
+055b 20400571 call p_mouse_dpi_another_gpio_check 
+055c 2020464f branch mouse_idle + 4 
 
 p_mouse_dpi_check:
-055b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-055c c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-055d 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-055e c17f8000 rtneq gpio_disable 
-055f da200000 arg 0 ,rega 
-0560 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-0561 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0562 20400564 call p_mouse_dpi_key_check 
-0563 2020402f branch mouse_dpi_check_next 
+055d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+055e c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+055f 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0560 c17f8000 rtneq gpio_disable 
+0561 da200000 arg 0 ,rega 
+0562 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+0563 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0564 20400566 call p_mouse_dpi_key_check 
+0565 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0564 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0565 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-0566 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-0567 1fe22600 copy pdata ,regc 
-0568 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0569 c07f856b beq gpio_disable ,p_mouse_3io6key_dpi_check 
-056a 2020403f branch mouse_dpi_key_check_next 
+0566 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0567 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0568 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+0569 1fe22600 copy pdata ,regc 
+056a 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+056b c07f856d beq gpio_disable ,p_mouse_3io6key_dpi_check 
+056c 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-056b 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-056c 20400519 call p_mouse_gpio_config_output_low 
-056d 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-056e 20204195 branch mouse_3io6key_check 
+056d 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+056e 2040051b call p_mouse_gpio_config_output_low 
+056f 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0570 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-056f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0570 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-0571 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-0572 243a0578 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+0571 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0572 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+0573 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+0574 243a057a nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-0573 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0574 20400516 call p_mouse_gpio_config_output_high 
-0575 20400588 call p_mouse_dpi_another_check 
-0576 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0577 20203f56 branch mouse_gpio_config_input_pu 
+0575 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0576 20400518 call p_mouse_gpio_config_output_high 
+0577 2040058a call p_mouse_dpi_another_check 
+0578 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0579 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-0578 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0579 793ffe07 set0 gpio_active_bit ,pdata 
-057a 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-057b 20400519 call p_mouse_gpio_config_output_low 
-057c 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-057d 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-057e 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-057f 204005a1 call p_mouse_check_key_connect_vin_new 
-0580 2040058c call p_mouse_dpi_another_state_check 
-0581 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0582 20203f56 branch mouse_gpio_config_input_pu 
+057a 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+057b 793ffe07 set0 gpio_active_bit ,pdata 
+057c 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+057d 2040051b call p_mouse_gpio_config_output_low 
+057e 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+057f 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0580 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0581 204005a3 call p_mouse_check_key_connect_vin_new 
+0582 2040058e call p_mouse_dpi_another_state_check 
+0583 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0584 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-0583 20403f56 call mouse_gpio_config_input_pu 
-0584 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0585 c1008000 rtneq dpi_button_state_down 
-0586 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0587 20204069 branch mouse_dpi_process 
+0585 20403f56 call mouse_gpio_config_input_pu 
+0586 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0587 c1008000 rtneq dpi_button_state_down 
+0588 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0589 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-0588 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0589 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-058a 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-058b 20400597 call p_mouse_check_key_connect_gnd_new 
+058a 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+058b 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+058c 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+058d 20400599 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-058c 67e0cc3c store 1 ,mem_dpi_another_press_status 
-058d 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-058e 203a0593 branch p_mouse_dpi_another_up ,blank 
+058e 67e0cc3c store 1 ,mem_dpi_another_press_status 
+058f 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+0590 203a0595 branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-058f 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0590 c1008000 rtneq dpi_button_state_down 
-0591 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0592 20204069 branch mouse_dpi_process 
+0591 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0592 c1008000 rtneq dpi_button_state_down 
+0593 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0594 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-0593 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0594 c1000000 rtneq dpi_button_state_up 
-0595 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-0596 20600000 rtn 
+0595 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0596 c1000000 rtneq dpi_button_state_up 
+0597 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0598 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-0597 1fe3fe00 lshift pdata ,pdata 
-0598 1fe22400 copy pdata ,regb 
-0599 20406059 call gpio_get_bit 
-059a 7920a400 setflag true ,0 ,regb 
-059b 1a417e07 and regb ,0x07 ,pdata 
-059c 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-059d 18420e00 copy temp ,queue 
-059e c00385ac beq 0x07 ,p_mouse_key_press 
-059f c00005ae beq 0x00 ,p_mouse_key_release 
-05a0 20600000 rtn 
+0599 1fe3fe00 lshift pdata ,pdata 
+059a 1fe22400 copy pdata ,regb 
+059b 20406059 call gpio_get_bit 
+059c 7920a400 setflag true ,0 ,regb 
+059d 1a417e07 and regb ,0x07 ,pdata 
+059e 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+059f 18420e00 copy temp ,queue 
+05a0 c00385ae beq 0x07 ,p_mouse_key_press 
+05a1 c00005b0 beq 0x00 ,p_mouse_key_release 
+05a2 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-05a1 1fe3fe00 lshift pdata ,pdata 
-05a2 1fe22400 copy pdata ,regb 
-05a3 20403f54 call mouse_gpio_config_input_pd 
-05a4 20406059 call gpio_get_bit 
-05a5 7920a400 setflag true ,0 ,regb 
-05a6 1a417e07 and regb ,0x07 ,pdata 
-05a7 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-05a8 18420e00 copy temp ,queue 
-05a9 c00385ac beq 0x07 ,p_mouse_key_press 
-05aa c00005ae beq 0x00 ,p_mouse_key_release 
-05ab 20600000 rtn 
+05a3 1fe3fe00 lshift pdata ,pdata 
+05a4 1fe22400 copy pdata ,regb 
+05a5 20403f54 call mouse_gpio_config_input_pd 
+05a6 20406059 call gpio_get_bit 
+05a7 7920a400 setflag true ,0 ,regb 
+05a8 1a417e07 and regb ,0x07 ,pdata 
+05a9 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+05aa 18420e00 copy temp ,queue 
+05ab c00385ae beq 0x07 ,p_mouse_key_press 
+05ac c00005b0 beq 0x00 ,p_mouse_key_release 
+05ad 20600000 rtn 
 
 p_mouse_key_press:
-05ac 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-05ad 20600000 rtn 
+05ae 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+05af 20600000 rtn 
 
 p_mouse_key_release:
-05ae 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-05af 20600000 rtn 
+05b0 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+05b1 20600000 rtn 
 
 p_mouse_dpi_process:
-05b0 20404072 call mouse_dpi_ghost_check 
-05b1 20740000 rtn user 
-05b2 6fe0c992 fetch 1 ,mem_mouse_dpi 
-05b3 1fe20400 copy pdata ,temp 
-05b4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05b5 c29e85bc bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-05b6 18427e00 copy temp ,pdata 
-05b7 1fe0fe01 increase 1 ,pdata 
-05b8 1fe17e03 and pdata ,0x03 ,pdata 
+05b2 20404072 call mouse_dpi_ghost_check 
+05b3 20740000 rtn user 
+05b4 6fe0c992 fetch 1 ,mem_mouse_dpi 
+05b5 1fe20400 copy pdata ,temp 
+05b6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05b7 c29e85be bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+05b8 18427e00 copy temp ,pdata 
+05b9 1fe0fe01 increase 1 ,pdata 
+05ba 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-05b9 67e0c992 store 1 ,mem_mouse_dpi 
-05ba 20404095 call mouse_seting_dpi 
-05bb 202045ee branch mouse_store_device_info_delay 
+05bb 67e0c992 store 1 ,mem_mouse_dpi 
+05bc 20404095 call mouse_seting_dpi 
+05bd 202045ee branch mouse_store_device_info_delay 
 
 p_mouse_double_dpi_check:
-05bc 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-05bd 243a05d9 nbranch p_mouse_another_dpi_button_down ,blank 
+05be 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+05bf 243a05db nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-05be 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05bf c28e05cd bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-05c0 18427e00 copy temp ,pdata 
-05c1 c1008000 rtneq mouse_dpi_level2 
+05c0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05c1 c28e05cf bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+05c2 18427e00 copy temp ,pdata 
+05c3 c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-05c2 c00005c9 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-05c3 c00105c7 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-05c4 20600000 rtn 
+05c4 c00005cb beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+05c5 c00105c9 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+05c6 20600000 rtn 
 
 p_mouse_dpi_level_1:
-05c5 58000002 setarg 2 
-05c6 202005b9 branch p_mouse_dpi_store 
+05c7 58000002 setarg 2 
+05c8 202005bb branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-05c7 58000000 setarg 0 
-05c8 202005b9 branch p_mouse_dpi_store 
+05c9 58000000 setarg 0 
+05ca 202005bb branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-05c9 58000001 setarg 1 
-05ca 202005b9 branch p_mouse_dpi_store 
+05cb 58000001 setarg 1 
+05cc 202005bb branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-05cb 58000003 setarg 3 
-05cc 202005b9 branch p_mouse_dpi_store 
+05cd 58000003 setarg 3 
+05ce 202005bb branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-05cd 18427e00 copy temp ,pdata 
-05ce c1008000 rtneq mouse_dpi_level2 
-05cf c00005c9 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-05d0 c00105cb beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-05d1 c00185c7 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-05d2 20600000 rtn 
+05cf 18427e00 copy temp ,pdata 
+05d0 c1008000 rtneq mouse_dpi_level2 
+05d1 c00005cb beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+05d2 c00105cd beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+05d3 c00185c9 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+05d4 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-05d3 18427e00 copy temp ,pdata 
-05d4 c1010000 rtneq mouse_dpi_level3 
-05d5 c00005cb beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-05d6 c00085c7 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-05d7 c00185c5 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-05d8 20600000 rtn 
+05d5 18427e00 copy temp ,pdata 
+05d6 c1010000 rtneq mouse_dpi_level3 
+05d7 c00005cd beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+05d8 c00085c9 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+05d9 c00185c7 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+05da 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-05d9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05da c28e05d3 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-05db 18427e00 copy temp ,pdata 
-05dc c1010000 rtneq mouse_dpi_level3 
+05db 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05dc c28e05d5 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+05dd 18427e00 copy temp ,pdata 
+05de c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-05dd c00005c5 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-05de c00085c7 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-05df 20600000 rtn 
+05df c00005c7 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+05e0 c00085c9 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+05e1 20600000 rtn 
 
 p_send_time_check:
-05e0 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-05e1 c000861b beq g24_tx_timer_int_enable ,p_send_timer_first 
-05e2 6fe0cc57 fetch 1 ,mem_tx_count 
-05e3 203a061b branch p_send_timer_first ,blank 
-05e4 1b227e00 copy clkn ,pdata 
-05e5 684b4c58 fetcht 6 ,mem_tx_time_last 
-05e6 67e34c58 store 6 ,mem_tx_time_last 
-05e7 20407d95 call clk_diff_rt 
-05e8 67e24c5e store 4 ,mem_tx_time_last_delt 
-05e9 6fe0cc6d fetch 1 ,mem_sleep_miss 
-05ea 247a0000 nrtn blank 
-05eb 6fe14c6b fetch 2 ,mem_retransmit 
+05e2 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+05e3 c000861d beq g24_tx_timer_int_enable ,p_send_timer_first 
+05e4 6fe0cc57 fetch 1 ,mem_tx_count 
+05e5 203a061d branch p_send_timer_first ,blank 
+05e6 1b227e00 copy clkn ,pdata 
+05e7 684b4c58 fetcht 6 ,mem_tx_time_last 
+05e8 67e34c58 store 6 ,mem_tx_time_last 
+05e9 20407d95 call clk_diff_rt 
+05ea 67e24c5e store 4 ,mem_tx_time_last_delt 
+05eb 6fe0cc6d fetch 1 ,mem_sleep_miss 
 05ec 247a0000 nrtn blank 
-05ed 6fe24c5e fetch 4 ,mem_tx_time_last_delt 
-05ee 684acc62 fetcht 5 ,mem_tx_time_sum 
-05ef 9840fe00 iadd temp ,pdata 
-05f0 67e2cc62 store 5 ,mem_tx_time_sum 
-05f1 6848cc57 fetcht 1 ,mem_tx_count 
-05f2 6fe0cc67 fetch 1 ,mem_tx_time_sum_count 
-05f3 98467c00 isub temp ,null 
-05f4 202285f8 branch p_send_time_check_average ,zero 
-05f5 18408401 increase 1 ,temp 
-05f6 6048cc57 storet 1 ,mem_tx_count 
-05f7 20600000 rtn 
+05ed 6fe14c6b fetch 2 ,mem_retransmit 
+05ee 247a0000 nrtn blank 
+05ef 6fe24c5e fetch 4 ,mem_tx_time_last_delt 
+05f0 684acc62 fetcht 5 ,mem_tx_time_sum 
+05f1 9840fe00 iadd temp ,pdata 
+05f2 67e2cc62 store 5 ,mem_tx_time_sum 
+05f3 6848cc57 fetcht 1 ,mem_tx_count 
+05f4 6fe0cc67 fetch 1 ,mem_tx_time_sum_count 
+05f5 98467c00 isub temp ,null 
+05f6 202285fa branch p_send_time_check_average ,zero 
+05f7 18408401 increase 1 ,temp 
+05f8 6048cc57 storet 1 ,mem_tx_count 
+05f9 20600000 rtn 
 
 p_send_time_check_average:
-05f8 704c5701 jam 1 ,mem_tx_count 
-05f9 d8400000 arg 0 ,temp 
-05fa 6fe2cc62 fetch 5 ,mem_tx_time_sum 
-05fb 604acc62 storet 5 ,mem_tx_time_sum 
-05fc 6848cc67 fetcht 1 ,mem_tx_time_sum_count 
-05fd 9846fc00 idiv temp 
-05fe 20407def call wait_div_end 
-05ff 1807fe00 quotient pdata 
-0600 684a4c53 fetcht 4 ,mem_24g_tsniff 
-0601 184085d8 increase -40 ,temp 
-0602 98467e00 isub temp ,pdata 
-0603 2021060f branch p_send_time_check_average_late ,positive 
-0604 1fe67e00 sub pdata ,0 ,pdata 
-0605 1feb7e00 rshift2 pdata ,pdata 
-0606 6849c8ad fetcht 3 ,mem_24g_short_sleep_set 
-0607 98408400 iadd temp ,temp 
-0608 6fe1cc68 fetch 3 ,mem_24g_short_sleep_set_init 
-0609 da201800 arg 0x1800 ,rega 
-060a 9a20fe00 iadd rega ,pdata 
-060b 98467c00 isub temp ,null 
-060c 24210619 nbranch p_send_time_check_average_min ,positive 
-060d 6049c8ad storet 3 ,mem_24g_short_sleep_set 
-060e 20600000 rtn 
+05fa 704c5701 jam 1 ,mem_tx_count 
+05fb d8400000 arg 0 ,temp 
+05fc 6fe2cc62 fetch 5 ,mem_tx_time_sum 
+05fd 604acc62 storet 5 ,mem_tx_time_sum 
+05fe 6848cc67 fetcht 1 ,mem_tx_time_sum_count 
+05ff 9846fc00 idiv temp 
+0600 20407def call wait_div_end 
+0601 1807fe00 quotient pdata 
+0602 684a4c53 fetcht 4 ,mem_24g_tsniff 
+0603 184085d8 increase -40 ,temp 
+0604 98467e00 isub temp ,pdata 
+0605 20210611 branch p_send_time_check_average_late ,positive 
+0606 1fe67e00 sub pdata ,0 ,pdata 
+0607 1feb7e00 rshift2 pdata ,pdata 
+0608 6849c8ad fetcht 3 ,mem_24g_short_sleep_set 
+0609 98408400 iadd temp ,temp 
+060a 6fe1cc68 fetch 3 ,mem_24g_short_sleep_set_init 
+060b da201800 arg 0x1800 ,rega 
+060c 9a20fe00 iadd rega ,pdata 
+060d 98467c00 isub temp ,null 
+060e 2421061b nbranch p_send_time_check_average_min ,positive 
+060f 6049c8ad storet 3 ,mem_24g_short_sleep_set 
+0610 20600000 rtn 
 
 p_send_time_check_average_late:
-060f 1feb0400 rshift2 pdata ,temp 
-0610 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-0611 98460400 isub temp ,temp 
-0612 6fe1cc68 fetch 3 ,mem_24g_short_sleep_set_init 
-0613 da201800 arg 0x1800 ,rega 
-0614 9a267e00 isub rega ,pdata 
-0615 98467c00 isub temp ,null 
-0616 20210619 branch p_send_time_check_average_min ,positive 
-0617 6049c8ad storet 3 ,mem_24g_short_sleep_set 
-0618 20600000 rtn 
+0611 1feb0400 rshift2 pdata ,temp 
+0612 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+0613 98460400 isub temp ,temp 
+0614 6fe1cc68 fetch 3 ,mem_24g_short_sleep_set_init 
+0615 da201800 arg 0x1800 ,rega 
+0616 9a267e00 isub rega ,pdata 
+0617 98467c00 isub temp ,null 
+0618 2021061b branch p_send_time_check_average_min ,positive 
+0619 6049c8ad storet 3 ,mem_24g_short_sleep_set 
+061a 20600000 rtn 
 
 p_send_time_check_average_min:
-0619 67e1c8ad store 3 ,mem_24g_short_sleep_set 
-061a 20600000 rtn 
+061b 67e1c8ad store 3 ,mem_24g_short_sleep_set 
+061c 20600000 rtn 
 
 p_send_timer_first:
-061b 704c5701 jam 1 ,mem_tx_count 
-061c 1b227e00 copy clkn ,pdata 
-061d 67e34c58 store 6 ,mem_tx_time_last 
-061e 20600000 rtn 
+061d 704c5701 jam 1 ,mem_tx_count 
+061e 1b227e00 copy clkn ,pdata 
+061f 67e34c58 store 6 ,mem_tx_time_last 
+0620 20600000 rtn 
 
 p_send_time_long_wake:
-061f 58000000 setarg 0 
-0620 67e0cc57 store 1 ,mem_tx_count 
-0621 67e2cc62 store 5 ,mem_tx_time_sum 
-0622 20600000 rtn 
+0621 58000000 setarg 0 
+0622 67e0cc57 store 1 ,mem_tx_count 
+0623 67e2cc62 store 5 ,mem_tx_time_sum 
+0624 20600000 rtn 
 
 p_power_ctrl_start:
-0623 6fe1478c fetch 2 ,mem_ui_state_map 
-0624 c3858000 rtnbit1 ui_state_ble_adv 
-0625 c3838000 rtnbit1 ui_state_bt_reconnect 
-0626 c3830000 rtnbit1 ui_state_bt_discovery 
-0627 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0628 204025cb call rssi_average 
-0629 6048c8c7 storet 1 ,mem_rssi_avg_received 
-062a 202026f6 branch power_ctrl_rssi_avg_compare 
+0625 6fe1478c fetch 2 ,mem_ui_state_map 
+0626 c3858000 rtnbit1 ui_state_ble_adv 
+0627 c3838000 rtnbit1 ui_state_bt_reconnect 
+0628 c3830000 rtnbit1 ui_state_bt_discovery 
+0629 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+062a 204025cb call rssi_average 
+062b 6048c8c7 storet 1 ,mem_rssi_avg_received 
+062c 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/program/patch.prog	(revision 1652)
+++ /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/program/patch.prog	(working copy)
@@ -729,7 +729,7 @@
 	increase 1,pdata
 	store 2,mem_24g_txfail_cnt	
 	fetch 1,mem_24g_txfail_cnt+1
-	bbit1 2,g24_tx_attempt_fail
+	bbit1 1,g24_tx_attempt_fail
 	call g24_transmit_hop_process
 	fetch 2,mem_retransmit
 	increase 1,pdata
@@ -808,9 +808,9 @@
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	rtnbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
 p_mouse_wheel_set_wakeup:
-	fetch 1,mem_whee_a_data_gpio
+	fetcht 1,mem_whee_a_data_gpio
 	call mouse_gpio_config_input_pu
-	fetch 1,mem_whee_b_data_gpio
+	fetcht 1,mem_whee_b_data_gpio
 	branch mouse_gpio_config_input_pu
 
 /////////////////////////////////// g24 250Hz use lpm//////////////////////////////////////
@@ -836,7 +836,7 @@
 	call p_mouse_gpio_config_output_high
 	arg 3,temp
 	call mouse_gpio_config_input_pu
-	call mouse_lpm_before_common
+	call p_mouse_lpm_before_common
 	call gpio_pd_idle
 	call p_mouse_1io2led_all_off
 	arg 19,temp
@@ -1042,16 +1042,16 @@
 
 p_mouse_24g_auto_pair_attempt_fail:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
-	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_attempt_fail_enter_hibernate
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
 	fetch 1,mem_device_number
-	beq 1,p_mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
+	beq 1,mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
 	branch mouse_24g_first_bluetooth_reconnect
 
 p_mouse_reconn_dongle_attempt_fail:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_attempt_fail_enter_hibernate
-	bbit1 MOUSE_ENABLE_EEPROM,p_mouse_24g_attempt_fail_enter_hibernate
-	bbit1 MOUSE_ENABLE_FLASH,p_mouse_24g_attempt_fail_enter_hibernate
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_FLASH,mouse_24g_attempt_fail_enter_hibernate
 	branch mouse_24g_start_auto_pair+1
 
 p_mouse_24g_attempt_fail_enter_hibernate:
@@ -1650,6 +1650,8 @@
 	branch disable_user,blank
 	fetch 1,mem_lpm_mode
 	branch disable_user,blank
+	fetch 1,mem_sensor_shutdown_flag
+	nrtn blank
 	fetch 1,mem_24g_transmit_by_interrupt
 	beq G24_TX_TIMER_INT_ENABLE,disable_user
 	rtn
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/sched/mouse.dat	(revision 1652)
+++ /YC1308AC/branch/mouse_project/XZR/PBSwitch_3mode_3ch_8388/sched/mouse.dat	(working copy)
@@ -198,7 +198,7 @@
 mem_mouse_fast_direct_timeout:0a #1s
 mem_mouse_fast_page_to:60 06	# 1600*0.625ms = 1s
 mem_mouse_24g_power_on_fast_conn_timer:0a 00 #1s
-mem_mouse_24g_search_dongle_time_init: 02 00
+mem_mouse_24g_search_dongle_time_init: 64 00
 mem_mouse_no_data_timeout:70 17 #10min
 
 mem_mouse_device_poweron_timer_count_init:14	#2s
