Index: output/eeprom.dat
===================================================================
--- /YC1308AF/branch/mouse/mouse_public_4mode_usb/output/eeprom.dat	(revision 3611)
+++ /YC1308AF/branch/mouse/mouse_public_4mode_usb/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-1a
+46
 1a
 c2
 84
@@ -55,19 +55,19 @@
 c0
 66
 85
-59
+58
 c0
 67
 03
-ea
+eb
 c0
 67
 83
-f3
+f4
 c0
 68
 05
-83
+82
 c0
 69
 03
@@ -79,7 +79,7 @@
 c0
 6a
 84
-06
+07
 c0
 6c
 02
@@ -103,11 +103,11 @@
 c0
 6c
 84
-f1
+f0
 c0
 6d
 04
-fb
+fa
 c0
 6e
 03
@@ -119,7 +119,7 @@
 c0
 73
 85
-09
+08
 20
 20
 13
@@ -131,19 +131,19 @@
 c0
 42
 84
-fe
+fd
 c0
 47
 05
-c6
+c5
 c0
 49
 85
-d7
+d6
 c0
 53
 05
-02
+01
 c0
 6f
 01
@@ -155,15 +155,15 @@
 c0
 71
 04
-7d
+7c
 c0
 71
 84
-a5
+a4
 c0
 74
 84
-af
+ae
 c0
 75
 01
@@ -171,23 +171,23 @@
 c0
 76
 04
-e6
+e5
 c0
 0c
 85
-1d
+1c
 c0
 4f
 85
-27
+26
 c0
 50
 85
-31
+30
 c0
 5f
 05
-33
+32
 20
 20
 13
@@ -647,11 +647,11 @@
 20
 40
 03
-f4
+f5
 20
 40
 05
-e3
+e2
 20
 40
 47
@@ -1151,7 +1151,7 @@
 24
 34
 04
-32
+33
 20
 40
 01
@@ -2543,7 +2543,7 @@
 20
 40
 03
-d3
+d4
 20
 40
 03
@@ -3271,7 +3271,7 @@
 da
 40
 04
-58
+59
 20
 20
 45
@@ -3379,7 +3379,7 @@
 20
 20
 04
-37
+38
 da
 60
 49
@@ -3551,7 +3551,7 @@
 20
 20
 03
-f4
+f5
 20
 40
 03
@@ -3671,7 +3671,7 @@
 20
 40
 05
-b3
+b2
 20
 40
 3e
@@ -3867,15 +3867,15 @@
 20
 40
 03
-d6
+d7
 20
 40
 03
-cd
+ce
 20
 40
 03
-d0
+d1
 20
 40
 47
@@ -3887,11 +3887,15 @@
 20
 40
 06
-25
+24
 20
 40
 06
-55
+60
+20
+40
+06
+52
 20
 60
 00
@@ -3963,7 +3967,7 @@
 20
 40
 03
-df
+e0
 20
 20
 40
@@ -3991,7 +3995,7 @@
 c0
 7f
 83
-e6
+e7
 20
 20
 40
@@ -4003,7 +4007,7 @@
 20
 40
 05
-b6
+b5
 68
 48
 c9
@@ -4039,11 +4043,11 @@
 20
 40
 03
-f3
+f4
 20
 40
 03
-f7
+f8
 20
 20
 46
@@ -4079,15 +4083,15 @@
 c0
 00
 04
-00
+01
 c0
 00
 84
-02
+03
 c0
 01
 03
-fe
+ff
 20
 60
 00
@@ -4099,7 +4103,7 @@
 20
 20
 04
-03
+04
 58
 00
 00
@@ -4107,7 +4111,7 @@
 20
 20
 04
-03
+04
 58
 00
 00
@@ -4131,23 +4135,23 @@
 c0
 1e
 04
-1b
+1c
 c0
 1c
 84
-17
+18
 c0
 1d
 04
-2b
+2c
 c0
 19
 04
-5a
+5b
 c0
 0a
 84
-66
+67
 c0
 0a
 04
@@ -4155,7 +4159,7 @@
 c0
 20
 04
-61
+62
 c0
 00
 84
@@ -4167,7 +4171,7 @@
 c0
 09
 04
-12
+13
 20
 20
 43
@@ -4195,7 +4199,7 @@
 20
 40
 04
-15
+16
 20
 40
 45
@@ -4267,7 +4271,7 @@
 20
 40
 04
-15
+16
 20
 20
 48
@@ -4279,7 +4283,7 @@
 20
 40
 04
-15
+16
 6f
 e0
 c8
@@ -4295,7 +4299,7 @@
 c0
 01
 04
-4f
+50
 20
 20
 48
@@ -4307,7 +4311,7 @@
 20
 5a
 04
-41
+42
 6f
 e0
 c8
@@ -4447,7 +4451,7 @@
 20
 22
 84
-58
+59
 20
 20
 48
@@ -4467,7 +4471,7 @@
 c0
 00
 84
-5e
+5f
 70
 4b
 87
@@ -4529,10 +4533,6 @@
 ca
 d7
 70
-4c
-be
-00
-70
 4b
 05
 00
@@ -4569,10 +4569,6 @@
 44
 3a
 70
-4c
-be
-00
-70
 4b
 90
 00
@@ -4627,7 +4623,7 @@
 c0
 00
 04
-85
+84
 20
 60
 00
@@ -4643,19 +4639,19 @@
 c0
 00
 84
-8c
+8b
 c0
 01
 04
-8e
+8d
 c0
 01
 84
-94
+93
 c0
 02
 04
-9a
+99
 20
 60
 00
@@ -4667,7 +4663,7 @@
 20
 20
 04
-9b
+9a
 6f
 e0
 c8
@@ -4675,7 +4671,7 @@
 20
 3a
 04
-92
+91
 6f
 e2
 48
@@ -4691,7 +4687,7 @@
 20
 20
 04
-9b
+9a
 70
 47
 c9
@@ -4703,7 +4699,7 @@
 20
 3a
 04
-9b
+9a
 6f
 e2
 48
@@ -4715,7 +4711,7 @@
 20
 20
 04
-9d
+9c
 70
 47
 c9
@@ -4771,7 +4767,7 @@
 c0
 01
 04
-a9
+a8
 20
 20
 23
@@ -4815,7 +4811,7 @@
 20
 3a
 04
-ba
+b9
 6f
 e1
 48
@@ -4855,11 +4851,11 @@
 24
 2c
 04
-d3
+d2
 24
 37
 84
-d3
+d2
 20
 40
 26
@@ -4879,7 +4875,7 @@
 20
 22
 84
-b7
+b6
 6f
 e2
 48
@@ -4895,7 +4891,7 @@
 20
 42
 84
-cf
+ce
 6f
 e0
 c8
@@ -4975,11 +4971,11 @@
 c0
 01
 04
-dd
+dc
 c0
 02
 04
-e4
+e3
 20
 20
 25
@@ -5143,7 +5139,7 @@
 c2
 80
 85
-06
+05
 20
 20
 16
@@ -5187,7 +5183,7 @@
 c0
 04
 85
-11
+10
 20
 20
 4d
@@ -5263,7 +5259,7 @@
 c0
 03
 85
-24
+23
 20
 20
 57
@@ -5335,7 +5331,7 @@
 c0
 02
 05
-36
+35
 20
 20
 19
@@ -5351,11 +5347,11 @@
 c0
 05
 05
-3b
+3a
 c0
 09
 05
-4a
+49
 20
 20
 1c
@@ -5383,7 +5379,7 @@
 c2
 81
 85
-45
+44
 6f
 e1
 44
@@ -5411,11 +5407,11 @@
 24
 22
 85
-41
+40
 24
 34
 05
-41
+40
 20
 20
 1d
@@ -5495,7 +5491,7 @@
 20
 40
 05
-69
+68
 58
 00
 00
@@ -5507,7 +5503,7 @@
 20
 40
 03
-f4
+f5
 20
 40
 3f
@@ -5519,7 +5515,7 @@
 20
 40
 05
-80
+7f
 6f
 e0
 c8
@@ -5539,7 +5535,7 @@
 20
 40
 05
-79
+78
 20
 20
 45
@@ -5559,11 +5555,11 @@
 c0
 06
 05
-6f
+6e
 c0
 05
 85
-6f
+6e
 20
 20
 42
@@ -5579,7 +5575,7 @@
 c0
 7f
 85
-75
+74
 68
 48
 c9
@@ -5623,7 +5619,7 @@
 20
 40
 05
-dd
+dc
 20
 40
 47
@@ -5631,7 +5627,7 @@
 20
 40
 05
-e0
+df
 20
 60
 00
@@ -5639,11 +5635,11 @@
 20
 40
 05
-83
+82
 20
 40
 05
-b9
+b8
 20
 20
 41
@@ -5663,15 +5659,15 @@
 20
 40
 05
-8a
+89
 20
 40
 05
-99
+98
 20
 40
 05
-a6
+a5
 20
 20
 41
@@ -5683,7 +5679,7 @@
 20
 40
 05
-b3
+b2
 20
 40
 41
@@ -5703,7 +5699,7 @@
 20
 40
 05
-b3
+b2
 20
 40
 41
@@ -5723,7 +5719,7 @@
 20
 40
 05
-b3
+b2
 20
 40
 41
@@ -5767,7 +5763,7 @@
 c0
 7f
 85
-a2
+a1
 20
 20
 41
@@ -5779,7 +5775,7 @@
 20
 40
 05
-b6
+b5
 68
 48
 c9
@@ -5819,7 +5815,7 @@
 c0
 7f
 85
-af
+ae
 20
 20
 41
@@ -5831,7 +5827,7 @@
 20
 40
 05
-b6
+b5
 68
 48
 c9
@@ -5883,11 +5879,11 @@
 20
 40
 05
-c0
+bf
 20
 40
 05
-c3
+c2
 20
 20
 41
@@ -5931,7 +5927,7 @@
 c0
 00
 05
-cb
+ca
 20
 20
 7a
@@ -5959,7 +5955,7 @@
 c0
 00
 85
-d2
+d1
 20
 20
 7a
@@ -5971,7 +5967,7 @@
 c0
 04
 85
-d5
+d4
 20
 20
 7a
@@ -6051,15 +6047,15 @@
 20
 40
 05
-f0
+ef
 20
 40
 06
-18
+17
 20
 40
 05
-f5
+f4
 6f
 e0
 cc
@@ -6111,7 +6107,7 @@
 20
 40
 05
-f9
+f8
 6f
 e0
 c9
@@ -6159,7 +6155,7 @@
 24
 41
 06
-0d
+0c
 1f
 e2
 24
@@ -6247,7 +6243,7 @@
 20
 40
 06
-10
+0f
 6f
 e4
 4b
@@ -6255,15 +6251,15 @@
 c2
 8e
 86
-1f
+1e
 c2
 8f
 06
-21
+20
 c2
 8f
 86
-23
+22
 70
 49
 2e
@@ -6307,7 +6303,7 @@
 20
 40
 06
-2b
+2a
 6f
 e0
 c9
@@ -6331,11 +6327,11 @@
 24
 20
 86
-2f
+2e
 20
 20
 06
-3d
+3b
 6f
 e0
 c9
@@ -6353,10 +6349,6 @@
 af
 00
 70
-4c
-be
-00
-70
 0b
 fa
 00
@@ -6404,6 +6396,10 @@
 49
 30
 5a
+70
+4c
+af
+01
 58
 00
 00
@@ -6416,14 +6412,6 @@
 e1
 48
 8b
-70
-4c
-af
-01
-70
-4c
-be
-01
 20
 40
 02
@@ -6435,7 +6423,7 @@
 20
 40
 06
-13
+12
 20
 40
 48
@@ -6455,7 +6443,7 @@
 58
 00
 05
-e7
+e6
 67
 e1
 0b
@@ -6497,6 +6485,62 @@
 80
 00
 6f
+e0
+c9
+30
+c0
+2d
+06
+58
+c0
+52
+86
+5c
+20
+60
+00
+00
+6f
+e0
+cc
+af
+20
+7a
+00
+00
+70
+4c
+be
+01
+20
+60
+00
+00
+6f
+e0
+cc
+af
+20
+7a
+00
+00
+70
+4c
+be
+00
+20
+60
+00
+00
+6f
+e4
+4b
+bc
+c4
+06
+80
+00
+6f
 f0
 8c
 02
@@ -6511,7 +6555,7 @@
 20
 40
 05
-fe
+fd
 24
 74
 00
@@ -6527,7 +6571,7 @@
 20
 20
 06
-5f
+6a
 6f
 f0
 8c
@@ -6543,7 +6587,7 @@
 c3
 0a
 86
-65
+70
 6f
 e0
 cb
@@ -6551,7 +6595,7 @@
 c0
 00
 86
-6b
+76
 20
 40
 37
@@ -6583,7 +6627,7 @@
 20
 3a
 06
-76
+81
 6f
 e4
 4b
@@ -6599,11 +6643,11 @@
 c0
 01
 86
-78
+83
 c0
 01
 06
-7f
+8a
 20
 40
 37
@@ -6627,7 +6671,7 @@
 20
 20
 06
-6e
+79
 20
 40
 37
@@ -6685,7 +6729,7 @@
 00
 00
 ed
-b9
+a3
 aa
 55
 40
@@ -8085,52 +8129,8 @@
 55
 d8
 a1
-71
-27
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+19
+e3
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-9b
-20
+7d
+2d
Index: output/program.lis
===================================================================
--- /YC1308AF/branch/mouse/mouse_public_4mode_usb/output/program.lis	(revision 3611)
+++ /YC1308AF/branch/mouse/mouse_public_4mode_usb/output/program.lis	(working copy)
@@ -12,42 +12,42 @@
 0009 c064038c beq patch19_0 ,p_mouse_setgpio_hibernate 
 000a c06483be beq patch19_1 ,p_mouse_lpm_before_common 
 000b c065829f beq patch19_3 ,p_mouse_adc_read_start 
-000c c0668559 beq patch19_5 ,p_mouse_motion 
-000d c06703ea beq patch19_6 ,p_mouse_dpi_process 
-000e c06783f3 beq patch19_7 ,p_mouse_seting_dpi 
-000f c0680583 beq patch1a_0 ,p_mouse_check_key_gpio 
+000c c0668558 beq patch19_5 ,p_mouse_motion 
+000d c06703eb beq patch19_6 ,p_mouse_dpi_process 
+000e c06783f4 beq patch19_7 ,p_mouse_seting_dpi 
+000f c0680582 beq patch1a_0 ,p_mouse_check_key_gpio 
 0010 c069035b beq patch1a_2 ,p_mouse_init_sunt 
 0011 c0698370 beq patch1a_3 ,p_mouse_sensor_poweron 
-0012 c06a8406 beq patch1a_5 ,p_mouse_priority_bb_event 
+0012 c06a8407 beq patch1a_5 ,p_mouse_priority_bb_event 
 0013 c06c0272 beq patch1b_0 ,p_mouse_bb_event_timer 
 0014 c06e83c3 beq patch1b_5 ,p_mouse_idle 
 0015 c06f003b beq patch1b_6 ,p_mouse_ready_reconnection_by_button 
 0016 c0700033 beq patch1c_0 ,p_mouse_led_off 
 0017 c070802f beq patch1c_1 ,p_mouse_led_on 
-0018 c06c84f1 beq patch1b_1 ,p_mouse_start_discovery 
-0019 c06d04fb beq patch1b_2 ,p_mouse_stop_discovery 
+0018 c06c84f0 beq patch1b_1 ,p_mouse_start_discovery 
+0019 c06d04fa beq patch1b_2 ,p_mouse_stop_discovery 
 001a c06e0354 beq patch1b_4 ,p_mouse_store_device_info 
 001b c04f808e beq patch13_7 ,p_init_param 
-001c c0738509 beq patch1c_7 ,p_hid_rx_process 
+001c c0738508 beq patch1c_7 ,p_hid_rx_process 
 001d 2020137e branch loop 
 
 pf_patch_ext:
 001e c00f80a6 beq patch23_7 ,p_twspi_reset 
-001f c04284fe beq patch30_5 ,p_ui_timer_check 
-0020 c04705c6 beq patch31_6 ,p_usb_class_type 
-0021 c04985d7 beq patch32_3 ,p_usb_tx 
-0022 c0530502 beq patch34_6 ,p_le_enable_phy_by_pdata 
+001f c04284fd beq patch30_5 ,p_ui_timer_check 
+0020 c04705c5 beq patch31_6 ,p_usb_class_type 
+0021 c04985d6 beq patch32_3 ,p_usb_tx 
+0022 c0530501 beq patch34_6 ,p_le_enable_phy_by_pdata 
 0023 c06f01cb beq patch3b_6 ,p_g24_receive_packet 
 0024 c0708252 beq patch3c_1 ,p_g24_transmit 
-0025 c071047d beq patch3c_2 ,p_g24_pair_dispatch 
-0026 c07184a5 beq patch3c_3 ,p_g24_pair_sm_common_next 
-0027 c07484af beq patch3d_1 ,p_g24_reconn_dispatch 
+0025 c071047c beq patch3c_2 ,p_g24_pair_dispatch 
+0026 c07184a4 beq patch3c_3 ,p_g24_pair_sm_common_next 
+0027 c07484ae beq patch3d_1 ,p_g24_reconn_dispatch 
 0028 c075011d beq patch3d_2 ,p_g24_transmit_no_interrupt 
-0029 c07604e6 beq patch3d_4 ,p_g24_lpm_wait 
-002a c00c851d beq patch23_1 ,p_send_lmp 
-002b c04f8527 beq patch33_7 ,p_le_slave_match 
-002c c0508531 beq patch34_1 ,p_le_slave_unsync 
-002d c05f0533 beq patch37_6 ,p_le_parse_l2cap 
+0029 c07604e5 beq patch3d_4 ,p_g24_lpm_wait 
+002a c00c851c beq patch23_1 ,p_send_lmp 
+002b c04f8526 beq patch33_7 ,p_le_slave_match 
+002c c0508530 beq patch34_1 ,p_le_slave_unsync 
+002d c05f0532 beq patch37_6 ,p_le_parse_l2cap 
 002e 2020137e branch loop 
 
 p_mouse_led_on:
@@ -204,8 +204,8 @@
 009d 204000e9 call p_mouse_setting_config 
 009e 204041e7 call mouse_init_sunt 
 009f 20758000 rtn wake 
-00a0 204003f4 call p_mouse_seting_sensor_type 
-00a1 204005e3 call p_mouse_usb_check_enable 
+00a0 204003f5 call p_mouse_seting_sensor_type 
+00a1 204005e2 call p_mouse_usb_check_enable 
 00a2 20404766 call mouse_drawing_optima_init 
 00a3 204000fc call p_mouse_cb_fuction 
 00a4 2040037a call p_mouse_sensor_powerdown 
@@ -378,7 +378,7 @@
 
 p_g24_transmit_no_interrupt:
 011d 20402638 call g24_txdata_prep 
-011e 24340432 nbranch p_g24_nodata_transmit ,user 
+011e 24340433 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
 011f 204001b0 call p_g24_transmit_process 
@@ -816,7 +816,7 @@
 0277 204002d5 call p_mouse_led_multi_timer 
 0278 20400289 call p_mouse_dpi_led_timer 
 0279 204040bc call mouse_dpi_key_check_long_press 
-027a 204003d3 call p_mouse_bt_discovery_check 
+027a 204003d4 call p_mouse_bt_discovery_check 
 027b 2040031b call p_mouse_commbination_key_process 
 027c 2040453f call mouse_check_discovery_timeout_timer 
 027d 20400332 call p_mouse_check_direct_timeout_timer 
@@ -1074,7 +1074,7 @@
 032f 20600000 rtn 
 
 p_mouse_combination_ui_timer:
-0330 da400458 arg p_mouse_24g_start_pair_mode ,regb 
+0330 da400459 arg p_mouse_24g_start_pair_mode ,regb 
 0331 20204537 branch mouse_combination_ui_timer + 1 
 
 p_mouse_check_direct_timeout_timer:
@@ -1113,7 +1113,7 @@
 0348 67e3c8d4 store 7 ,mem_mouse_key 
 0349 704bf201 jam 1 ,mem_sensor_shutdown_flag 
 034a 2040037a call p_mouse_sensor_powerdown 
-034b 20200437 branch p_g24_long_sleep 
+034b 20200438 branch p_g24_long_sleep 
 
 p_mouse_store_information_delay_timer:
 034c da6049c4 arg mem_store_information_delay_timer ,regc 
@@ -1182,7 +1182,7 @@
 
 p_mouse_sensor_poweron_end:
 0375 2040426b call mouse_sensor_wr_seq 
-0376 202003f4 branch p_mouse_seting_sensor_type 
+0376 202003f5 branch p_mouse_seting_sensor_type 
 
 p_mouse_ka8g2_sensor_init:
 0377 2040038a call p_mouse_ka8g2_sensor_reset 
@@ -1226,7 +1226,7 @@
 0391 6848c914 fetcht 1 ,mem_matrix_public_gpio 
 0392 204060e6 call gpio_clr_wake 
 0393 6fe0c924 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0394 204005b3 call p_mouse_gpio_config_output_high 
+0394 204005b2 call p_mouse_gpio_config_output_high 
 0395 20403e80 call mouse_lpm_before_common 
 0396 20403e72 call mouse_gpio_pu_idle 
 0397 d8400001 arg 0x01 ,temp 
@@ -1291,231 +1291,231 @@
 p_mouse_idle:
 03c3 204049dd call mouse_low_voltage_led_no_enter_lpm 
 03c4 204079a1 call ui_check_paring_button 
-03c5 204003d6 call p_mouse_dpi_check 
-03c6 204003cd call p_mouse_select_device_check 
-03c7 204003d0 call p_mouse_check_select_device_by_switch 
+03c5 204003d7 call p_mouse_dpi_check 
+03c6 204003ce call p_mouse_select_device_check 
+03c7 204003d1 call p_mouse_check_select_device_by_switch 
 03c8 20404714 call mouse_bt_button_check 
 03c9 20403fc8 call mouse_wheel_check 
-03ca 20400625 call p_mouse_usb_isr 
-03cb 20400655 call p_mouse_usb_mode 
-03cc 20600000 rtn 
+03ca 20400624 call p_mouse_usb_isr 
+03cb 20400660 call p_mouse_usb_mode 
+03cc 20400652 call p_mouse_usb_mode_flag_check 
+03cd 20600000 rtn 
 
 p_mouse_select_device_check:
-03cd 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
-03ce 247a0000 nrtn blank 
-03cf 20204693 branch mouse_select_device_check 
+03ce 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
+03cf 247a0000 nrtn blank 
+03d0 20204693 branch mouse_select_device_check 
 
 p_mouse_check_select_device_by_switch:
-03d0 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
-03d1 247a0000 nrtn blank 
-03d2 202046de branch mouse_check_select_device_by_switch 
+03d1 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
+03d2 247a0000 nrtn blank 
+03d3 202046de branch mouse_check_select_device_by_switch 
 
 p_mouse_bt_discovery_check:
-03d3 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
-03d4 247a0000 nrtn blank 
-03d5 2020450c branch mouse_bt_discovery_check 
+03d4 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
+03d5 247a0000 nrtn blank 
+03d6 2020450c branch mouse_bt_discovery_check 
 
 p_mouse_dpi_check:
-03d6 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-03d7 c2974076 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-03d8 6fe0c913 fetch 1 ,mem_dpi_button_gpio 
-03d9 c17f8000 rtneq gpio_disable 
-03da da200000 arg 0 ,rega 
-03db 704ba705 jam mouse_dpi_key ,mem_mouse_key_temp 
-03dc 6848c913 fetcht 1 ,mem_dpi_button_gpio 
-03dd 204003df call p_mouse_dpi_key_check 
-03de 2020406f branch mouse_dpi_check_next 
+03d7 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+03d8 c2974076 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+03d9 6fe0c913 fetch 1 ,mem_dpi_button_gpio 
+03da c17f8000 rtneq gpio_disable 
+03db da200000 arg 0 ,rega 
+03dc 704ba705 jam mouse_dpi_key ,mem_mouse_key_temp 
+03dd 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+03de 204003e0 call p_mouse_dpi_key_check 
+03df 2020406f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-03df 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-03e0 c2964088 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-03e1 6fe0cba4 fetch 1 ,mem_mouse_dpikey_press_status 
-03e2 1fe22600 copy pdata ,regc 
-03e3 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
-03e4 c07f83e6 beq gpio_disable ,p_mouse_3io6key_dpi_check 
-03e5 2020407f branch mouse_dpi_key_check_next 
+03e0 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+03e1 c2964088 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+03e2 6fe0cba4 fetch 1 ,mem_mouse_dpikey_press_status 
+03e3 1fe22600 copy pdata ,regc 
+03e4 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+03e5 c07f83e7 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+03e6 2020407f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-03e6 6fe0c913 fetch 1 ,mem_dpi_button_gpio 
-03e7 204005b6 call p_mouse_gpio_config_output_low 
-03e8 6848c913 fetcht 1 ,mem_dpi_button_gpio 
-03e9 202041d5 branch mouse_3io6key_check 
+03e7 6fe0c913 fetch 1 ,mem_dpi_button_gpio 
+03e8 204005b5 call p_mouse_gpio_config_output_low 
+03e9 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+03ea 202041d5 branch mouse_3io6key_check 
 
 p_mouse_dpi_process:
-03ea 204040b2 call mouse_dpi_ghost_check 
-03eb 20740000 rtn user 
-03ec 6fe0c997 fetch 1 ,mem_mouse_dpi 
-03ed 1fe0fe01 increase 1 ,pdata 
-03ee 1fe17e03 and pdata ,0x03 ,pdata 
-03ef 67e0c997 store 1 ,mem_mouse_dpi 
-03f0 204003f3 call p_mouse_seting_dpi 
-03f1 204003f7 call p_mouse_dpi_led_blink_init 
-03f2 2020462e branch mouse_store_device_info_delay 
+03eb 204040b2 call mouse_dpi_ghost_check 
+03ec 20740000 rtn user 
+03ed 6fe0c997 fetch 1 ,mem_mouse_dpi 
+03ee 1fe0fe01 increase 1 ,pdata 
+03ef 1fe17e03 and pdata ,0x03 ,pdata 
+03f0 67e0c997 store 1 ,mem_mouse_dpi 
+03f1 204003f4 call p_mouse_seting_dpi 
+03f2 204003f8 call p_mouse_dpi_led_blink_init 
+03f3 2020462e branch mouse_store_device_info_delay 
 
 p_mouse_seting_dpi:
-03f3 204040cf call mouse_setting_dpi_4_level 
+03f4 204040cf call mouse_setting_dpi_4_level 
 
 p_mouse_seting_sensor_type:
-03f4 6fe0c92c fetch 1 ,mem_config_sensor_type 
-03f5 c00640fb beq ka5857 ,mouse_seting_3212_dpi 
-03f6 202040da branch mouse_seting_sensor_type + 2 
+03f5 6fe0c92c fetch 1 ,mem_config_sensor_type 
+03f6 c00640fb beq ka5857 ,mouse_seting_3212_dpi 
+03f7 202040da branch mouse_seting_sensor_type + 2 
 
 p_mouse_dpi_led_blink_init:
-03f7 6fe0ccbe fetch 1 ,mem_mouse_pair_success 
-03f8 207a0000 rtn blank 
-03f9 6fe0c997 fetch 1 ,mem_mouse_dpi 
-03fa c0000400 beq mouse_dpi_level1 ,p_mouse_dpi_level_2 
-03fb c0008402 beq mouse_dpi_level2 ,p_mouse_dpi_level_3 
-03fc c00103fe beq mouse_dpi_level3 ,p_mouse_dpi_level_1 
-03fd 20600000 rtn 
+03f8 6fe0ccbe fetch 1 ,mem_mouse_pair_success 
+03f9 207a0000 rtn blank 
+03fa 6fe0c997 fetch 1 ,mem_mouse_dpi 
+03fb c0000401 beq mouse_dpi_level1 ,p_mouse_dpi_level_2 
+03fc c0008403 beq mouse_dpi_level2 ,p_mouse_dpi_level_3 
+03fd c00103ff beq mouse_dpi_level3 ,p_mouse_dpi_level_1 
+03fe 20600000 rtn 
 
 p_mouse_dpi_level_1:
-03fe 58000001 setarg 1 
-03ff 20200403 branch p_mouse_dpi_blink_count_init 
+03ff 58000001 setarg 1 
+0400 20200404 branch p_mouse_dpi_blink_count_init 
 
 p_mouse_dpi_level_2:
-0400 58000002 setarg 2 
-0401 20200403 branch p_mouse_dpi_blink_count_init 
+0401 58000002 setarg 2 
+0402 20200404 branch p_mouse_dpi_blink_count_init 
 
 p_mouse_dpi_level_3:
-0402 58000003 setarg 3 
+0403 58000003 setarg 3 
 
 p_mouse_dpi_blink_count_init:
-0403 67e0ccc0 store 1 ,mem_mouse_dpi_blink_count 
-0404 704cbf01 jam 1 ,mem_mouse_dpi_led_blink_enable 
-0405 20600000 rtn 
+0404 67e0ccc0 store 1 ,mem_mouse_dpi_blink_count 
+0405 704cbf01 jam 1 ,mem_mouse_dpi_led_blink_enable 
+0406 20600000 rtn 
 
 p_mouse_priority_bb_event:
-0406 1a627e00 copy regc ,pdata 
-0407 c01e041b beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0408 c01c8417 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-0409 c01d042b beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-040a c019045a beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-040b c00a8466 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-040c c00a0470 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-040d c0200461 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
-040e c0008472 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-040f c0010475 beq bt_evt_bb_disconnected ,p_mouse_bb_disconnected 
-0410 c0090412 beq bt_evt_hid_handshake ,p_mouse_bt_hid_handshake 
-0411 20204376 branch mouse_priority_bb_event + 2 
+0407 1a627e00 copy regc ,pdata 
+0408 c01e041c beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0409 c01c8418 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+040a c01d042c beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+040b c019045b beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+040c c00a8467 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+040d c00a0470 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+040e c0200462 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+040f c0008472 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0410 c0010475 beq bt_evt_bb_disconnected ,p_mouse_bb_disconnected 
+0411 c0090413 beq bt_evt_hid_handshake ,p_mouse_bt_hid_handshake 
+0412 20204376 branch mouse_priority_bb_event + 2 
 
 p_mouse_bt_hid_handshake:
-0412 70445401 jam app_handshake_done ,mem_app_handshake_flag 
-0413 20403295 call app_lpm_mult_enable 
-0414 20204467 branch mouse_bt_hid_handshake + 3 
+0413 70445401 jam app_handshake_done ,mem_app_handshake_flag 
+0414 20403295 call app_lpm_mult_enable 
+0415 20204467 branch mouse_bt_hid_handshake + 3 
 
 p_mouse_agc_disable_nomal_power:
-0415 20400118 call p_mouse_soft_agc_disable 
-0416 202000f9 branch p_mouse_fetch_normal_tx_power 
+0416 20400118 call p_mouse_soft_agc_disable 
+0417 202000f9 branch p_mouse_fetch_normal_tx_power 
 
 p_mouse_24g_pairing_complete:
-0417 20400415 call p_mouse_agc_disable_nomal_power 
-0418 20404584 call mouse_no_data_timer_init 
-0419 20400303 call p_mouse_device_poweron_led_config 
-041a 20204896 branch mouse_24g_pairing_complete 
+0418 20400416 call p_mouse_agc_disable_nomal_power 
+0419 20404584 call mouse_no_data_timer_init 
+041a 20400303 call p_mouse_device_poweron_led_config 
+041b 20204896 branch mouse_24g_pairing_complete 
 
 p_mouse_24g_attempt_success:
-041b 6fe2483f fetch 4 ,mem_24g_addr 
-041c 67e24895 store 4 ,mem_24g_receiver_addr 
-041d 67e24998 store 4 ,mem_mouse_24g_addr 
-041e 20402587 call g24_ch_syncword_crc8_init 
-041f 20404584 call mouse_no_data_timer_init 
-0420 2040430a call mouse_init_sensor_reset 
-0421 704abf00 jam 0 ,mem_mouse_long_mult_flag 
-0422 7048a500 jam 0 ,mem_24g_conn_sm 
-0423 70488f00 jam 0 ,mem_24g_reconn_type 
-0424 6fe24895 fetch 4 ,mem_24g_receiver_addr 
-0425 684a4891 fetcht 4 ,mem_24g_fast_conn_addr 
-0426 98467c00 isub temp ,null 
-0427 20628000 rtn zero 
-0428 20400303 call p_mouse_device_poweron_led_config 
-0429 20400415 call p_mouse_agc_disable_nomal_power 
-042a 20204861 branch mouse_24g_first_store_reconn_info 
+041c 6fe2483f fetch 4 ,mem_24g_addr 
+041d 67e24895 store 4 ,mem_24g_receiver_addr 
+041e 67e24998 store 4 ,mem_mouse_24g_addr 
+041f 20402587 call g24_ch_syncword_crc8_init 
+0420 20404584 call mouse_no_data_timer_init 
+0421 2040430a call mouse_init_sensor_reset 
+0422 704abf00 jam 0 ,mem_mouse_long_mult_flag 
+0423 7048a500 jam 0 ,mem_24g_conn_sm 
+0424 70488f00 jam 0 ,mem_24g_reconn_type 
+0425 6fe24895 fetch 4 ,mem_24g_receiver_addr 
+0426 684a4891 fetcht 4 ,mem_24g_fast_conn_addr 
+0427 98467c00 isub temp ,null 
+0428 20628000 rtn zero 
+0429 20400303 call p_mouse_device_poweron_led_config 
+042a 20400416 call p_mouse_agc_disable_nomal_power 
+042b 20204861 branch mouse_24g_first_store_reconn_info 
 
 p_mouse_24g_attempt_fail:
-042b 704cbe00 jam 0 ,mem_mouse_pair_success 
-042c 20400415 call p_mouse_agc_disable_nomal_power 
-042d 6fe0c8a9 fetch 1 ,mem_24g_attempt_fail_flag 
-042e 243a0343 nbranch p_mouse_24g_hibernate_set ,blank 
-042f 6fe0c88f fetch 1 ,mem_24g_reconn_type 
-0430 c001044f beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
-0431 20204876 branch mouse_24g_attempt_fail + 4 
+042c 704cbe00 jam 0 ,mem_mouse_pair_success 
+042d 20400416 call p_mouse_agc_disable_nomal_power 
+042e 6fe0c8a9 fetch 1 ,mem_24g_attempt_fail_flag 
+042f 243a0343 nbranch p_mouse_24g_hibernate_set ,blank 
+0430 6fe0c88f fetch 1 ,mem_24g_reconn_type 
+0431 c0010450 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+0432 20204876 branch mouse_24g_attempt_fail + 4 
 
 p_g24_nodata_transmit:
-0432 6fe0c8ab fetch 1 ,mem_24g_abort_pac 
-0433 205a0441 call p_g24_send_abort_packet ,blank 
-0434 6fe0c8c1 fetch 1 ,mem_24g_transmit_by_interrupt 
-0435 c1008000 rtneq g24_tx_timer_int_enable 
-0436 204026a6 call g24_search_receiver 
+0433 6fe0c8ab fetch 1 ,mem_24g_abort_pac 
+0434 205a0442 call p_g24_send_abort_packet ,blank 
+0435 6fe0c8c1 fetch 1 ,mem_24g_transmit_by_interrupt 
+0436 c1008000 rtneq g24_tx_timer_int_enable 
+0437 204026a6 call g24_search_receiver 
 
 p_g24_long_sleep:
-0437 204026c2 call g24_lpm_wait 
-0438 24740000 nrtn user 
-0439 204026cb call g24_setgpio_lpm_before 
-043a 704c3100 jam 0 ,mem_sleep_miss 
-043b 704c3201 jam 1 ,mem_long_sleep_flag 
-043c 204000e5 call p_send_time_long_wake 
-043d 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
-043e 245a3e6a ncall mouse_setgpio_hibernate ,blank 
-043f 6fe2485f fetch 4 ,mem_24g_enter_hibernate 
-0440 202026bf branch g24_long_seep2 
+0438 204026c2 call g24_lpm_wait 
+0439 24740000 nrtn user 
+043a 204026cb call g24_setgpio_lpm_before 
+043b 704c3100 jam 0 ,mem_sleep_miss 
+043c 704c3201 jam 1 ,mem_long_sleep_flag 
+043d 204000e5 call p_send_time_long_wake 
+043e 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
+043f 245a3e6a ncall mouse_setgpio_hibernate ,blank 
+0440 6fe2485f fetch 4 ,mem_24g_enter_hibernate 
+0441 202026bf branch g24_long_seep2 
 
 p_g24_send_abort_packet:
-0441 70483901 jam type_ms ,mem_24g_data_type 
-0442 7048ab01 jam 1 ,mem_24g_abort_pac 
-0443 20402649 call g24_transmit_rf_ctrl_clear 
-0444 67e0c7c9 store 1 ,mem_24g_txbuf 
-0445 58000000 setarg 0 
-0446 67e3c7ca store 7 ,mem_24g_txbuf + 1 
-0447 6fe248ad fetch 4 ,mem_24g_device_addr 
-0448 67e247d1 store 4 ,mem_24g_txbuf + 8 
-0449 7048380c jam 12 ,mem_24g_datalen 
-044a 6fe0c839 fetch 1 ,mem_24g_data_type 
-044b 79207e03 set1 bit_abort ,pdata 
-044c 67e0c839 store 1 ,mem_24g_data_type 
-044d 20402247 call g24_transmit_prep 
-044e 2020011f branch p_g24_transmit_start 
+0442 70483901 jam type_ms ,mem_24g_data_type 
+0443 7048ab01 jam 1 ,mem_24g_abort_pac 
+0444 20402649 call g24_transmit_rf_ctrl_clear 
+0445 67e0c7c9 store 1 ,mem_24g_txbuf 
+0446 58000000 setarg 0 
+0447 67e3c7ca store 7 ,mem_24g_txbuf + 1 
+0448 6fe248ad fetch 4 ,mem_24g_device_addr 
+0449 67e247d1 store 4 ,mem_24g_txbuf + 8 
+044a 7048380c jam 12 ,mem_24g_datalen 
+044b 6fe0c839 fetch 1 ,mem_24g_data_type 
+044c 79207e03 set1 bit_abort ,pdata 
+044d 67e0c839 store 1 ,mem_24g_data_type 
+044e 20402247 call g24_transmit_prep 
+044f 2020011f branch p_g24_transmit_start 
 
 p_mouse_24g_fast_conn_attempt_fail:
-044f 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-0450 c297c850 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
-0451 c2984850 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
-0452 c31d4845 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
-0453 6fe24998 fetch 4 ,mem_mouse_24g_addr 
-0454 684a4979 fetcht 4 ,mem_mouse_compare_addr_ff 
-0455 98467c00 isub temp ,null 
-0456 20228458 branch p_mouse_24g_start_pair_mode ,zero 
-0457 20204845 branch mouse_24g_reconn_dongle_start 
+0450 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+0451 c297c850 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+0452 c2984850 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+0453 c31d4845 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+0454 6fe24998 fetch 4 ,mem_mouse_24g_addr 
+0455 684a4979 fetcht 4 ,mem_mouse_compare_addr_ff 
+0456 98467c00 isub temp ,null 
+0457 20228459 branch p_mouse_24g_start_pair_mode ,zero 
+0458 20204845 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_start_pair_mode:
-0458 70488f00 jam 0 ,mem_24g_reconn_type 
-0459 20204866 branch mouse_24g_start_pair_mode 
+0459 70488f00 jam 0 ,mem_24g_reconn_type 
+045a 20204866 branch mouse_24g_start_pair_mode 
 
 p_mouse_le_ll_start_encryt:
-045a 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
-045b c000845e beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-045c 704b8714 jam 20 ,mem_le_start_encrypt_timer 
-045d 202043b3 branch mouse_le_ll_enable_start_enc_flag 
+045b 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
+045c c000845f beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+045d 704b8714 jam 20 ,mem_le_start_encrypt_timer 
+045e 202043b3 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-045e 204043ac call mouse_updata_le_param 
-045f 704b870a jam 10 ,mem_le_start_encrypt_timer 
-0460 202043b3 branch mouse_le_ll_enable_start_enc_flag 
+045f 204043ac call mouse_updata_le_param 
+0460 704b870a jam 10 ,mem_le_start_encrypt_timer 
+0461 202043b3 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_conn_param_update_rsp_recieved:
-0461 6fe0cc6f fetch 1 ,mem_mouse_le_send_conn_param_update 
-0462 247a0000 nrtn blank 
-0463 704c6f01 jam 1 ,mem_mouse_le_send_conn_param_update 
-0464 704c701e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
-0465 20600000 rtn 
+0462 6fe0cc6f fetch 1 ,mem_mouse_le_send_conn_param_update 
+0463 247a0000 nrtn blank 
+0464 704c6f01 jam 1 ,mem_mouse_le_send_conn_param_update 
+0465 704c701e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
+0466 20600000 rtn 
 
 p_mouse_le_bb_disconnected:
-0466 58000000 setarg 0 
-0467 67e14b03 store 2 ,mem_le_battery_level_updata_timer 
-0468 67e0cc6f store 1 ,mem_mouse_le_send_conn_param_update 
-0469 67e0cc70 store 1 ,mem_mouse_le_send_conn_param_update_timer 
-046a 67e0cad7 store 1 ,mem_mouse_le_bb_connected_flag 
-046b 704cbe00 jam 0 ,mem_mouse_pair_success 
+0467 58000000 setarg 0 
+0468 67e14b03 store 2 ,mem_le_battery_level_updata_timer 
+0469 67e0cc6f store 1 ,mem_mouse_le_send_conn_param_update 
+046a 67e0cc70 store 1 ,mem_mouse_le_send_conn_param_update_timer 
+046b 67e0cad7 store 1 ,mem_mouse_le_bb_connected_flag 
 046c 704b0500 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
 046d 704abd00 jam 0 ,mem_mouse_clear_sensor_data_flag 
 046e 20401ac8 call le_clr_config_more_data 
@@ -1531,717 +1531,734 @@
 0474 2020443a branch mouse_bb_event_connected 
 
 p_mouse_bb_disconnected:
-0475 704cbe00 jam 0 ,mem_mouse_pair_success 
-0476 704b9000 jam 0 ,mem_mouse_enter_sniff_count 
-0477 704b9900 jam 0 ,mem_mouse_bt_send_first_package_flag 
-0478 20404433 call mouse_bt_sniff_param_interval_setup 
-0479 20404449 call mouse_bb_discon_clear_stack 
-047a 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
-047b 247a0000 nrtn blank 
-047c 20204442 branch mouse_bb_disconnected + 4 
+0475 704b9000 jam 0 ,mem_mouse_enter_sniff_count 
+0476 704b9900 jam 0 ,mem_mouse_bt_send_first_package_flag 
+0477 20404433 call mouse_bt_sniff_param_interval_setup 
+0478 20404449 call mouse_bb_discon_clear_stack 
+0479 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
+047a 247a0000 nrtn blank 
+047b 20204442 branch mouse_bb_disconnected + 4 
 
 p_g24_pair_dispatch:
-047d 70488f00 jam default_24g_device ,mem_24g_reconn_type 
-047e 6fe14bfd fetch 2 ,mem_24g_pair_count 
-047f 1fe0fe01 increase 1 ,pdata 
-0480 67e14bfd store 2 ,mem_24g_pair_count 
-0481 6fe0cbfd fetch 1 ,mem_24g_pair_count 
-0482 1fe17eff and pdata ,0xff ,pdata 
-0483 c0000485 beq 0 ,p_g24_pair_dispatch2 
-0484 20600000 rtn 
+047c 70488f00 jam default_24g_device ,mem_24g_reconn_type 
+047d 6fe14bfd fetch 2 ,mem_24g_pair_count 
+047e 1fe0fe01 increase 1 ,pdata 
+047f 67e14bfd store 2 ,mem_24g_pair_count 
+0480 6fe0cbfd fetch 1 ,mem_24g_pair_count 
+0481 1fe17eff and pdata ,0xff ,pdata 
+0482 c0000484 beq 0 ,p_g24_pair_dispatch2 
+0483 20600000 rtn 
 
 p_g24_pair_dispatch2:
-0485 6fe0c883 fetch 1 ,mem_24g_pair_sm 
-0486 c07fa344 beq state_24g_pairing_success ,g24_pair_exit 
-0487 c000848c beq state_24g_pairing_1 ,p_g24_pair_sm_1 
-0488 c001048e beq state_24g_pairing_2 ,p_g24_pair_sm_2 
-0489 c0018494 beq state_24g_pairing_3 ,p_g24_pair_sm_3 
-048a c002049a beq state_24g_pairing_4 ,p_g24_pair_sm_4 
-048b 20600000 rtn 
+0484 6fe0c883 fetch 1 ,mem_24g_pair_sm 
+0485 c07fa344 beq state_24g_pairing_success ,g24_pair_exit 
+0486 c000848b beq state_24g_pairing_1 ,p_g24_pair_sm_1 
+0487 c001048d beq state_24g_pairing_2 ,p_g24_pair_sm_2 
+0488 c0018493 beq state_24g_pairing_3 ,p_g24_pair_sm_3 
+0489 c0020499 beq state_24g_pairing_4 ,p_g24_pair_sm_4 
+048a 20600000 rtn 
 
 p_g24_pair_sm_1:
-048c 7047c9ff jam datatype_attemp ,mem_24g_txbuf 
-048d 2020049b branch p_g24_pair_sm_prep 
+048b 7047c9ff jam datatype_attemp ,mem_24g_txbuf 
+048c 2020049a branch p_g24_pair_sm_prep 
 
 p_g24_pair_sm_2:
-048e 6fe0c85e fetch 1 ,mem_24g_pair_switch 
-048f 203a0492 branch p_g24_pair_sm_2_skip ,blank 
-0490 6fe248ad fetch 4 ,mem_24g_device_addr 
-0491 20402292 call g24_update_addr_and_synccrc8 
+048d 6fe0c85e fetch 1 ,mem_24g_pair_switch 
+048e 203a0491 branch p_g24_pair_sm_2_skip ,blank 
+048f 6fe248ad fetch 4 ,mem_24g_device_addr 
+0490 20402292 call g24_update_addr_and_synccrc8 
 
 p_g24_pair_sm_2_skip:
-0492 7047c9aa jam datatype_bind ,mem_24g_txbuf 
-0493 2020049b branch p_g24_pair_sm_prep 
+0491 7047c9aa jam datatype_bind ,mem_24g_txbuf 
+0492 2020049a branch p_g24_pair_sm_prep 
 
 p_g24_pair_sm_3:
-0494 7047c955 jam datatype_config ,mem_24g_txbuf 
-0495 6fe0c85e fetch 1 ,mem_24g_pair_switch 
-0496 203a049b branch p_g24_pair_sm_prep ,blank 
-0497 6fe24895 fetch 4 ,mem_24g_receiver_addr 
-0498 67e247cb store 4 ,mem_24g_txbuf + 2 
-0499 2020049d branch p_g24_pair_sm_common 
+0493 7047c955 jam datatype_config ,mem_24g_txbuf 
+0494 6fe0c85e fetch 1 ,mem_24g_pair_switch 
+0495 203a049a branch p_g24_pair_sm_prep ,blank 
+0496 6fe24895 fetch 4 ,mem_24g_receiver_addr 
+0497 67e247cb store 4 ,mem_24g_txbuf + 2 
+0498 2020049c branch p_g24_pair_sm_common 
 
 p_g24_pair_sm_4:
-049a 7047c922 jam datatype_ok ,mem_24g_txbuf 
+0499 7047c922 jam datatype_ok ,mem_24g_txbuf 
 
 p_g24_pair_sm_prep:
-049b 6fe248ad fetch 4 ,mem_24g_device_addr 
-049c 67e247cb store 4 ,mem_24g_txbuf + 2 
+049a 6fe248ad fetch 4 ,mem_24g_device_addr 
+049b 67e247cb store 4 ,mem_24g_txbuf + 2 
 
 p_g24_pair_sm_common:
-049d 6fe0c839 fetch 1 ,mem_24g_data_type 
-049e 1fe17e07 and_into bits_data ,pdata 
-049f 67e0c7ca store 1 ,mem_24g_txbuf + 1 
-04a0 7047cf00 jam 0 ,mem_24g_txbuf + 6 
-04a1 70483807 jam 7 ,mem_24g_datalen 
-04a2 20402247 call g24_transmit_prep 
-04a3 204001bc call p_g24_transmit_receive_ack 
-04a4 20202316 branch g24_pair_sm_common + 7 
+049c 6fe0c839 fetch 1 ,mem_24g_data_type 
+049d 1fe17e07 and_into bits_data ,pdata 
+049e 67e0c7ca store 1 ,mem_24g_txbuf + 1 
+049f 7047cf00 jam 0 ,mem_24g_txbuf + 6 
+04a0 70483807 jam 7 ,mem_24g_datalen 
+04a1 20402247 call g24_transmit_prep 
+04a2 204001bc call p_g24_transmit_receive_ack 
+04a3 20202316 branch g24_pair_sm_common + 7 
 
 p_g24_pair_sm_common_next:
-04a5 6fe0c883 fetch 1 ,mem_24g_pair_sm 
-04a6 c17f8000 rtneq state_24g_pairing_success 
-04a7 c00104a9 beq state_24g_pairing_2 ,p_g24_pair_sm_2_waiting_ack 
-04a8 2020231d branch g24_pair_sm_common_next + 2 
+04a4 6fe0c883 fetch 1 ,mem_24g_pair_sm 
+04a5 c17f8000 rtneq state_24g_pairing_success 
+04a6 c00104a8 beq state_24g_pairing_2 ,p_g24_pair_sm_2_waiting_ack 
+04a7 2020231d branch g24_pair_sm_common_next + 2 
 
 p_g24_pair_sm_2_waiting_ack:
-04a9 6fe0c85e fetch 1 ,mem_24g_pair_switch 
-04aa 203a232d branch g24_pair_sm_2_waiting_ack_skip ,blank 
-04ab 6fe2480f fetch 4 ,mem_24g_rxpayload + 2 
-04ac 207a0000 rtn blank 
-04ad 67e24895 store 4 ,mem_24g_receiver_addr 
-04ae 2020232d branch g24_pair_sm_2_waiting_ack_skip 
+04a8 6fe0c85e fetch 1 ,mem_24g_pair_switch 
+04a9 203a232d branch g24_pair_sm_2_waiting_ack_skip ,blank 
+04aa 6fe2480f fetch 4 ,mem_24g_rxpayload + 2 
+04ab 207a0000 rtn blank 
+04ac 67e24895 store 4 ,mem_24g_receiver_addr 
+04ad 2020232d branch g24_pair_sm_2_waiting_ack_skip 
 
 p_g24_reconn_dispatch:
-04af 6fe1488d fetch 2 ,mem_24g_reconn_count 
-04b0 d84001f8 arg 0x01f8 ,temp 
-04b1 98417e00 iand temp ,pdata 
-04b2 203a04ba branch p_g24_reconn_dispatch_next ,blank 
-04b3 6fe1488d fetch 2 ,mem_24g_reconn_count 
-04b4 1fe0fe01 increase 1 ,pdata 
-04b5 67e1488d store 2 ,mem_24g_reconn_count 
-04b6 20600000 rtn 
+04ae 6fe1488d fetch 2 ,mem_24g_reconn_count 
+04af d84001f8 arg 0x01f8 ,temp 
+04b0 98417e00 iand temp ,pdata 
+04b1 203a04b9 branch p_g24_reconn_dispatch_next ,blank 
+04b2 6fe1488d fetch 2 ,mem_24g_reconn_count 
+04b3 1fe0fe01 increase 1 ,pdata 
+04b4 67e1488d store 2 ,mem_24g_reconn_count 
+04b5 20600000 rtn 
 
 p_g24_reconn_mode_judge:
-04b7 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-04b8 c29822e4 bbit1 mouse_enable_auto_24g_paring ,g24_pair_start 
-04b9 20202577 branch g24_reconn_receiver_addr 
+04b6 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+04b7 c29822e4 bbit1 mouse_enable_auto_24g_paring ,g24_pair_start 
+04b8 20202577 branch g24_reconn_receiver_addr 
 
 p_g24_reconn_dispatch_next:
-04ba 204025a3 call g24_reconn_data_prep 
-04bb 204001bc call p_g24_transmit_receive_ack 
-04bc 242c04d3 nbranch p_g24_reconn_device_fail ,sync 
-04bd 243784d3 nbranch p_g24_reconn_device_fail ,user3 
-04be 20402679 call g24_ackpayload_parse 
-04bf 6fe2487b fetch 4 ,mem_24g_pair_addr 
-04c0 684a483f fetcht 4 ,mem_24g_addr 
-04c1 98467c00 isub temp ,null 
-04c2 202284b7 branch p_g24_reconn_mode_judge ,zero 
-04c3 6fe248ad fetch 4 ,mem_24g_device_addr 
-04c4 684a483f fetcht 4 ,mem_24g_addr 
-04c5 98467c00 isub temp ,null 
-04c6 204284cf call p_g24_store_receiver_addr ,zero 
-04c7 6fe0c8a5 fetch 1 ,mem_24g_conn_sm 
-04c8 793ffe02 set0 state_24g_reconn ,pdata 
-04c9 67e0c8a5 store 1 ,mem_24g_conn_sm 
-04ca 58000000 setarg 0 
-04cb 67e14887 store 2 ,mem_24g_pair_timeout 
-04cc 67e1488d store 2 ,mem_24g_reconn_count 
-04cd 67e1488b store 2 ,mem_24g_reconn_timeout 
-04ce 2020259e branch g24_reconn_attempt_success 
+04b9 204025a3 call g24_reconn_data_prep 
+04ba 204001bc call p_g24_transmit_receive_ack 
+04bb 242c04d2 nbranch p_g24_reconn_device_fail ,sync 
+04bc 243784d2 nbranch p_g24_reconn_device_fail ,user3 
+04bd 20402679 call g24_ackpayload_parse 
+04be 6fe2487b fetch 4 ,mem_24g_pair_addr 
+04bf 684a483f fetcht 4 ,mem_24g_addr 
+04c0 98467c00 isub temp ,null 
+04c1 202284b6 branch p_g24_reconn_mode_judge ,zero 
+04c2 6fe248ad fetch 4 ,mem_24g_device_addr 
+04c3 684a483f fetcht 4 ,mem_24g_addr 
+04c4 98467c00 isub temp ,null 
+04c5 204284ce call p_g24_store_receiver_addr ,zero 
+04c6 6fe0c8a5 fetch 1 ,mem_24g_conn_sm 
+04c7 793ffe02 set0 state_24g_reconn ,pdata 
+04c8 67e0c8a5 store 1 ,mem_24g_conn_sm 
+04c9 58000000 setarg 0 
+04ca 67e14887 store 2 ,mem_24g_pair_timeout 
+04cb 67e1488d store 2 ,mem_24g_reconn_count 
+04cc 67e1488b store 2 ,mem_24g_reconn_timeout 
+04cd 2020259e branch g24_reconn_attempt_success 
 
 p_g24_store_receiver_addr:
-04cf 6fe2480f fetch 4 ,mem_24g_rxpayload + 2 
-04d0 207a0000 rtn blank 
-04d1 67e24895 store 4 ,mem_24g_receiver_addr 
-04d2 20202587 branch g24_ch_syncword_crc8_init 
+04ce 6fe2480f fetch 4 ,mem_24g_rxpayload + 2 
+04cf 207a0000 rtn blank 
+04d0 67e24895 store 4 ,mem_24g_receiver_addr 
+04d1 20202587 branch g24_ch_syncword_crc8_init 
 
 p_g24_reconn_device_fail:
-04d3 6fe0c890 fetch 1 ,mem_24g_fast_conn_enable 
-04d4 203a2281 branch g24_ch ,blank 
-04d5 6fe1488d fetch 2 ,mem_24g_reconn_count 
-04d6 1fe0fe01 increase 1 ,pdata 
-04d7 67e1488d store 2 ,mem_24g_reconn_count 
-04d8 2feffe09 isolate1 9 ,pdata 
-04d9 6fe0c88f fetch 1 ,mem_24g_reconn_type 
-04da c00104dd beq fast_conn_and_3_0_addr ,p_g24_reconn_fast_conn_and_3_0 
-04db c00204e4 beq pair_and_3_0_addr ,p_g24_reconn_pair_and_3_0 
-04dc 202025b1 branch g24_reconn_device_fail + 7 
+04d2 6fe0c890 fetch 1 ,mem_24g_fast_conn_enable 
+04d3 203a2281 branch g24_ch ,blank 
+04d4 6fe1488d fetch 2 ,mem_24g_reconn_count 
+04d5 1fe0fe01 increase 1 ,pdata 
+04d6 67e1488d store 2 ,mem_24g_reconn_count 
+04d7 2feffe09 isolate1 9 ,pdata 
+04d8 6fe0c88f fetch 1 ,mem_24g_reconn_type 
+04d9 c00104dc beq fast_conn_and_3_0_addr ,p_g24_reconn_fast_conn_and_3_0 
+04da c00204e3 beq pair_and_3_0_addr ,p_g24_reconn_pair_and_3_0 
+04db 202025b1 branch g24_reconn_device_fail + 7 
 
 p_g24_reconn_fast_conn_and_3_0:
-04dd 6fe0cc85 fetch 1 ,mem_24g_reconn_pairing_switch 
-04de 1fe0fe01 increase 1 ,pdata 
-04df 1fe17e03 and_into 3 ,pdata 
-04e0 67e0cc85 store 1 ,mem_24g_reconn_pairing_switch 
-04e1 c000257e beq 0 ,g24_reconn_device_3_0_addr 
-04e2 c001256f beq 2 ,g24_reconn_fast_conn 
-04e3 202022ef branch g24_pair_init_param 
+04dc 6fe0cc85 fetch 1 ,mem_24g_reconn_pairing_switch 
+04dd 1fe0fe01 increase 1 ,pdata 
+04de 1fe17e03 and_into 3 ,pdata 
+04df 67e0cc85 store 1 ,mem_24g_reconn_pairing_switch 
+04e0 c000257e beq 0 ,g24_reconn_device_3_0_addr 
+04e1 c001256f beq 2 ,g24_reconn_fast_conn 
+04e2 202022ef branch g24_pair_init_param 
 
 p_g24_reconn_pair_and_3_0:
-04e4 2020a57e branch g24_reconn_device_3_0_addr ,true 
-04e5 202022ef branch g24_pair_init_param 
+04e3 2020a57e branch g24_reconn_device_3_0_addr ,true 
+04e4 202022ef branch g24_pair_init_param 
 
 p_g24_lpm_wait:
-04e6 6fe0cbbb fetch 1 ,mem_24g_device_led_status 
-04e7 243a7ec7 nbranch disable_user ,blank 
-04e8 78347c00 enable user 
-04e9 20401436 call lpo_calibration 
-04ea 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-04eb 203a7ec7 branch disable_user ,blank 
-04ec 6fe0c099 fetch 1 ,mem_lpm_mode 
-04ed 203a7ec7 branch disable_user ,blank 
-04ee 6fe0c8c1 fetch 1 ,mem_24g_transmit_by_interrupt 
-04ef c000fec7 beq g24_tx_timer_int_enable ,disable_user 
-04f0 20600000 rtn 
+04e5 6fe0cbbb fetch 1 ,mem_24g_device_led_status 
+04e6 243a7ec7 nbranch disable_user ,blank 
+04e7 78347c00 enable user 
+04e8 20401436 call lpo_calibration 
+04e9 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+04ea 203a7ec7 branch disable_user ,blank 
+04eb 6fe0c099 fetch 1 ,mem_lpm_mode 
+04ec 203a7ec7 branch disable_user ,blank 
+04ed 6fe0c8c1 fetch 1 ,mem_24g_transmit_by_interrupt 
+04ee c000fec7 beq g24_tx_timer_int_enable ,disable_user 
+04ef 20600000 rtn 
 
 p_mouse_start_discovery:
-04f1 20400311 call p_mouse_device_discovery_led_config 
-04f2 6fe1478f fetch 2 ,mem_ui_state_map 
-04f3 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-04f4 2040c5c1 call mouse_stop_le_adv ,true 
-04f5 6fe1478f fetch 2 ,mem_ui_state_map 
-04f6 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-04f7 2040c362 call mouse_cancel_reconnect ,true 
-04f8 58000000 setarg 0 
-04f9 67e14b03 store 2 ,mem_le_battery_level_updata_timer 
-04fa 20204594 branch mouse_start_discovery + 1 
+04f0 20400311 call p_mouse_device_discovery_led_config 
+04f1 6fe1478f fetch 2 ,mem_ui_state_map 
+04f2 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+04f3 2040c5c1 call mouse_stop_le_adv ,true 
+04f4 6fe1478f fetch 2 ,mem_ui_state_map 
+04f5 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+04f6 2040c362 call mouse_cancel_reconnect ,true 
+04f7 58000000 setarg 0 
+04f8 67e14b03 store 2 ,mem_le_battery_level_updata_timer 
+04f9 20204594 branch mouse_start_discovery + 1 
 
 p_mouse_stop_discovery:
-04fb 58000000 setarg 0 
-04fc 67e14ad3 store 2 ,mem_mouse_discovery_timer 
-04fd 202045b7 branch mouse_stop_discovery + 1 
+04fa 58000000 setarg 0 
+04fb 67e14ad3 store 2 ,mem_mouse_discovery_timer 
+04fc 202045b7 branch mouse_stop_discovery + 1 
 
 p_ui_timer_check:
-04fe 6fe0cbf4 fetch 1 ,mem_power_on_flag 
-04ff 245a78cc ncall ui_timer_init ,blank 
-0500 704bf400 jam 0 ,mem_power_on_flag 
-0501 202078bc branch ui_timer_check + 1 
+04fd 6fe0cbf4 fetch 1 ,mem_power_on_flag 
+04fe 245a78cc ncall ui_timer_init ,blank 
+04ff 704bf400 jam 0 ,mem_power_on_flag 
+0500 202078bc branch ui_timer_check + 1 
 
 p_le_enable_phy_by_pdata:
-0502 18427e00 copy temp ,pdata 
-0503 c2801651 bbit1 bit_le_1m_phy ,le_enable 
-0504 c2808506 bbit1 bit_le_2m_phy ,p_le_enable_2m 
-0505 2020163c branch le_enable_phy_by_pdata + 5 
+0501 18427e00 copy temp ,pdata 
+0502 c2801651 bbit1 bit_le_1m_phy ,le_enable 
+0503 c2808505 bbit1 bit_le_2m_phy ,p_le_enable_2m 
+0504 2020163c branch le_enable_phy_by_pdata + 5 
 
 p_le_enable_2m:
-0506 20401640 call le_enable_2m 
-0507 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-0508 20600000 rtn 
+0505 20401640 call le_enable_2m 
+0506 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+0507 20600000 rtn 
 
 p_hid_rx_process:
-0509 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-050a 1fe20c00 copy pdata ,contr 
-050b efe08006 ifetch 1 ,contr 
-050c 67e0c5f8 store 1 ,mem_l2cap_rcv_hidtype 
-050d 1fe1040f and pdata ,0x0f ,temp 
-050e 1ff1fe00 rshift4 pdata ,pdata 
-050f c0048511 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-0510 20204df1 branch hid_rx_process + 7 
+0508 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0509 1fe20c00 copy pdata ,contr 
+050a efe08006 ifetch 1 ,contr 
+050b 67e0c5f8 store 1 ,mem_l2cap_rcv_hidtype 
+050c 1fe1040f and pdata ,0x0f ,temp 
+050d 1ff1fe00 rshift4 pdata ,pdata 
+050e c0048510 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+050f 20204df1 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-0511 da200001 arg 1 ,rega 
-0512 20404e1e call hid_malloc_tx_buff 
-0513 6fe144df fetch 2 ,mem_hid_ctrl_remote_cid 
-0514 e7e10005 istore 2 ,contw 
-0515 58000000 setarg 0 
-0516 e7e08005 istore 1 ,contw 
-0517 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0518 6fe0c4e5 fetch 1 ,mem_hid_control_state 
-0519 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-051a 67e0c4e5 store 1 ,mem_hid_control_state 
-051b 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-051c 202078dc branch ui_ipc_send_event 
+0510 da200001 arg 1 ,rega 
+0511 20404e1e call hid_malloc_tx_buff 
+0512 6fe144df fetch 2 ,mem_hid_ctrl_remote_cid 
+0513 e7e10005 istore 2 ,contw 
+0514 58000000 setarg 0 
+0515 e7e08005 istore 1 ,contw 
+0516 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0517 6fe0c4e5 fetch 1 ,mem_hid_control_state 
+0518 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0519 67e0c4e5 store 1 ,mem_hid_control_state 
+051a 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+051b 202078dc branch ui_ipc_send_event 
 
 p_send_lmp:
-051d 78547c00 disable user 
-051e 20405a44 call lmo_fifo_process 
-051f 6fe08048 fetch 1 ,mem_lmp_to_send 
-0520 207a0000 rtn blank 
-0521 c283d78e bbit1 7 ,send_lmp_escape 
+051c 78547c00 disable user 
+051d 20405a44 call lmo_fifo_process 
+051e 6fe08048 fetch 1 ,mem_lmp_to_send 
+051f 207a0000 rtn blank 
+0520 c283d78e bbit1 7 ,send_lmp_escape 
 
 p_send_lmp0:
-0522 c0038524 beq lmp_detach ,p_send_lmp_detach 
-0523 2020575f branch send_lmp0 
+0521 c0038523 beq lmp_detach ,p_send_lmp_detach 
+0522 2020575f branch send_lmp0 
 
 p_send_lmp_detach:
-0524 204058bb call send_lmp_detach 
-0525 70007278 jam 120 ,mem_conn_timer 
-0526 20600000 rtn 
+0523 204058bb call send_lmp_detach 
+0524 70007278 jam 120 ,mem_conn_timer 
+0525 20600000 rtn 
 
 p_le_slave_match:
-0527 6fe0c3dd fetch 1 ,mem_le_md_count 
-0528 1fe0fe01 pincrease 1 
-0529 67e0c3dd store 1 ,mem_le_md_count 
-052a c0061606 beq le_md_max_count ,le_slave_cont 
-052b 204018c7 call le_acknowledge 
-052c 20401916 call le_prepare_tx 
-052d 6fe082bd fetch 1 ,mem_le_tx_phy 
-052e 20401637 call le_enable_phy_by_pdata 
-052f 204017e4 call le_transmit 
-0530 20201601 branch le_slave_match + 10 
+0526 6fe0c3dd fetch 1 ,mem_le_md_count 
+0527 1fe0fe01 pincrease 1 
+0528 67e0c3dd store 1 ,mem_le_md_count 
+0529 c0061606 beq le_md_max_count ,le_slave_cont 
+052a 204018c7 call le_acknowledge 
+052b 20401916 call le_prepare_tx 
+052c 6fe082bd fetch 1 ,mem_le_tx_phy 
+052d 20401637 call le_enable_phy_by_pdata 
+052e 204017e4 call le_transmit 
+052f 20201601 branch le_slave_match + 10 
 
 p_le_slave_unsync:
-0531 20400e7c call end_of_packet 
-0532 2020160d branch le_slave_unsync + 1 
+0530 20400e7c call end_of_packet 
+0531 2020160d branch le_slave_unsync + 1 
 
 p_le_parse_l2cap:
-0533 efe10006 ifetch 2 ,contr 
-0534 c0020536 beq le_l2cap_cid_att ,p_le_parse_att 
-0535 20201990 branch le_parse_l2cap + 10 
+0532 efe10006 ifetch 2 ,contr 
+0533 c0020535 beq le_l2cap_cid_att ,p_le_parse_att 
+0534 20201990 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-0536 efe18006 ifetch 3 ,contr 
-0537 67e1c436 store 3 ,mem_le_att_opcode 
-0538 c005053b beq attop_read_request ,p_le_parse_att_read_request 
-0539 c009054a beq attop_write_request ,p_le_parse_att_write_request 
-053a 20201c7f branch le_parse_att + 2 
+0535 efe18006 ifetch 3 ,contr 
+0536 67e1c436 store 3 ,mem_le_att_opcode 
+0537 c005053a beq attop_read_request ,p_le_parse_att_read_request 
+0538 c0090549 beq attop_write_request ,p_le_parse_att_write_request 
+0539 20201c7f branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-053b 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-053c c31d9d93 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
-053d 20401e39 call le_check_encrypt_state 
-053e 68494437 fetcht 2 ,mem_le_att_handle 
-053f 6fe0c3c0 fetch 1 ,mem_le_configuration 
-0540 c2818545 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+053a 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+053b c31d9d93 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
+053c 20401e39 call le_check_encrypt_state 
+053d 68494437 fetcht 2 ,mem_le_att_handle 
+053e 6fe0c3c0 fetch 1 ,mem_le_configuration 
+053f c2818544 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-0541 6fe14437 fetch 2 ,mem_le_att_handle 
-0542 c0181e74 beq 0x30 ,le_send_att_error_response_notfound 
-0543 68494437 fetcht 2 ,mem_le_att_handle 
-0544 20201d97 branch le_send_att_read_response 
+0540 6fe14437 fetch 2 ,mem_le_att_handle 
+0541 c0181e74 beq 0x30 ,le_send_att_error_response_notfound 
+0542 68494437 fetcht 2 ,mem_le_att_handle 
+0543 20201d97 branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-0545 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-0546 98467c00 isub temp ,null 
-0547 24228541 nbranch p_le_send_att_read_response ,zero 
-0548 24340541 nbranch p_le_send_att_read_response ,user 
-0549 20201dbc branch le_send_att_read_response_error_insufficient_auth 
+0544 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+0545 98467c00 isub temp ,null 
+0546 24228540 nbranch p_le_send_att_read_response ,zero 
+0547 24340540 nbranch p_le_send_att_read_response ,user 
+0548 20201dbc branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-054a 18c22200 copy contr ,rega 
-054b 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-054c 1fe0a5fd add pdata ,-3 ,regb 
-054d 204019d1 call le_writeatt_cb 
-054e 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-054f c07f9e1f beq 0xff ,le_send_att_write_response_check_auth 
-0550 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
-0551 203a1e1f branch le_send_att_write_response_check_auth ,blank 
-0552 6fe0cb86 fetch 1 ,mem_le_connect_status_flag 
-0553 c2809e1f bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0554 5800001a setarg 0x001a 
-0555 68494437 fetcht 2 ,mem_le_att_handle 
-0556 98467c00 isub temp ,null 
-0557 24229e1f nbranch le_send_att_write_response_check_auth ,zero 
-0558 20201dbc branch le_send_att_read_response_error_insufficient_auth 
+0549 18c22200 copy contr ,rega 
+054a 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+054b 1fe0a5fd add pdata ,-3 ,regb 
+054c 204019d1 call le_writeatt_cb 
+054d 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+054e c07f9e1f beq 0xff ,le_send_att_write_response_check_auth 
+054f 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
+0550 203a1e1f branch le_send_att_write_response_check_auth ,blank 
+0551 6fe0cb86 fetch 1 ,mem_le_connect_status_flag 
+0552 c2809e1f bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0553 5800001a setarg 0x001a 
+0554 68494437 fetcht 2 ,mem_le_att_handle 
+0555 98467c00 isub temp ,null 
+0556 24229e1f nbranch le_send_att_write_response_check_auth ,zero 
+0557 20201dbc branch le_send_att_read_response_error_insufficient_auth 
 
 p_mouse_motion:
-0559 78547c00 disable user 
-055a 58000000 setarg 0 
-055b 67e348d5 store 6 ,mem_mouse_x 
-055c 20400569 call p_mouse_check_sensor_data 
-055d 58000089 setarg 0x0089 
-055e 20405d5e call twspi_write 
-055f 204003f4 call p_mouse_seting_sensor_type 
-0560 20403fbe call mouse_zwheel 
-0561 20403fc3 call mouse_t_zwheel 
-0562 20400580 call p_mouse_key 
-0563 6fe0c8d4 fetch 1 ,mem_mouse_key 
-0564 1fe17e1f and_into 0x1f ,pdata 
-0565 67e0c8d4 store 1 ,mem_mouse_key 
-0566 24344766 nbranch mouse_drawing_optima_init ,user 
-0567 20400579 call p_mouse_drawing_optima 
-0568 20204584 branch mouse_no_data_timer_init 
+0558 78547c00 disable user 
+0559 58000000 setarg 0 
+055a 67e348d5 store 6 ,mem_mouse_x 
+055b 20400568 call p_mouse_check_sensor_data 
+055c 58000089 setarg 0x0089 
+055d 20405d5e call twspi_write 
+055e 204003f5 call p_mouse_seting_sensor_type 
+055f 20403fbe call mouse_zwheel 
+0560 20403fc3 call mouse_t_zwheel 
+0561 2040057f call p_mouse_key 
+0562 6fe0c8d4 fetch 1 ,mem_mouse_key 
+0563 1fe17e1f and_into 0x1f ,pdata 
+0564 67e0c8d4 store 1 ,mem_mouse_key 
+0565 24344766 nbranch mouse_drawing_optima_init ,user 
+0566 20400578 call p_mouse_drawing_optima 
+0567 20204584 branch mouse_no_data_timer_init 
 
 p_mouse_check_sensor_data:
-0569 6fe0c4ae fetch 1 ,mem_spi_write_flash_sm 
-056a c1800000 rtnne flash_sm_no_buys 
-056b 6fe0c92c fetch 1 ,mem_config_sensor_type 
-056c c006056f beq ka5857 ,p_mouse_ka5857_sensor_motion 
-056d c005856f beq ka8g2 ,p_mouse_ka5857_sensor_motion 
-056e 20204283 branch mouse_check_sensor_data + 3 
+0568 6fe0c4ae fetch 1 ,mem_spi_write_flash_sm 
+0569 c1800000 rtnne flash_sm_no_buys 
+056a 6fe0c92c fetch 1 ,mem_config_sensor_type 
+056b c006056e beq ka5857 ,p_mouse_ka5857_sensor_motion 
+056c c005856e beq ka8g2 ,p_mouse_ka5857_sensor_motion 
+056d 20204283 branch mouse_check_sensor_data + 3 
 
 p_mouse_ka5857_sensor_motion:
-056f 20404304 call mouse_clear_sensor_data 
-0570 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
-0571 c07f8575 beq gpio_disable ,p_mouse_ka5857_sensor_motion_1 
-0572 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
-0573 204060fd call gpio_get_bit 
-0574 24608000 nrtn true 
+056e 20404304 call mouse_clear_sensor_data 
+056f 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+0570 c07f8574 beq gpio_disable ,p_mouse_ka5857_sensor_motion_1 
+0571 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+0572 204060fd call gpio_get_bit 
+0573 24608000 nrtn true 
 
 p_mouse_ka5857_sensor_motion_1:
-0575 58000000 setarg pan_reg_pid_l 
-0576 20405d65 call twspi_read 
-0577 c0ac41f2 bne pka8g2_id1 ,mouse_twspi_reset 
-0578 202042b9 branch mouse_p3212_sensor_motion_2 
+0574 58000000 setarg pan_reg_pid_l 
+0575 20405d65 call twspi_read 
+0576 c0ac41f2 bne pka8g2_id1 ,mouse_twspi_reset 
+0577 202042b9 branch mouse_p3212_sensor_motion_2 
 
 p_mouse_drawing_optima:
-0579 6fe0c92c fetch 1 ,mem_config_sensor_type 
-057a c1018000 rtneq p3212 
-057b c1058000 rtneq ka8g2 
-057c 204005dd call p_usb_store_mem 
-057d 20404758 call mouse_drawing_optima 
-057e 204005e0 call p_usb_get_mem 
-057f 20600000 rtn 
+0578 6fe0c92c fetch 1 ,mem_config_sensor_type 
+0579 c1018000 rtneq p3212 
+057a c1058000 rtneq ka8g2 
+057b 204005dc call p_usb_store_mem 
+057c 20404758 call mouse_drawing_optima 
+057d 204005df call p_usb_get_mem 
+057e 20600000 rtn 
 
 p_mouse_key:
-0580 20400583 call p_mouse_check_key_gpio 
-0581 204005b9 call p_mouse_ghost_key_check 
-0582 2020411e branch mouse_key + 2 
+057f 20400582 call p_mouse_check_key_gpio 
+0580 204005b8 call p_mouse_ghost_key_check 
+0581 2020411e branch mouse_key + 2 
 
 p_mouse_check_key_gpio:
-0583 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
-0584 245a4161 ncall mouse_check_key_gpio_once ,blank 
-0585 da200000 arg 0 ,rega 
-0586 2040058a call p_mouse_check_lkey_gpio 
-0587 20400599 call p_mouse_check_bkkey_gpio 
-0588 204005a6 call p_mouse_check_fwkey_gpio 
-0589 2020415e branch mouse_check_key_gpio_next 
+0582 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
+0583 245a4161 ncall mouse_check_key_gpio_once ,blank 
+0584 da200000 arg 0 ,rega 
+0585 20400589 call p_mouse_check_lkey_gpio 
+0586 20400598 call p_mouse_check_bkkey_gpio 
+0587 204005a5 call p_mouse_check_fwkey_gpio 
+0588 2020415e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-058a 6fe0c91c fetch 1 ,mem_lbutton_gpio 
-058b 204005b3 call p_mouse_gpio_config_output_high 
-058c 20404164 call mouse_check_lkey_gpio 
-058d 6848c91c fetcht 1 ,mem_lbutton_gpio 
-058e 20403f96 call mouse_gpio_config_input_pu 
+0589 6fe0c91c fetch 1 ,mem_lbutton_gpio 
+058a 204005b2 call p_mouse_gpio_config_output_high 
+058b 20404164 call mouse_check_lkey_gpio 
+058c 6848c91c fetcht 1 ,mem_lbutton_gpio 
+058d 20403f96 call mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-058f 6fe0c91d fetch 1 ,mem_rbutton_gpio 
-0590 204005b3 call p_mouse_gpio_config_output_high 
-0591 2040416a call mouse_check_rkey_gpio 
-0592 6848c91d fetcht 1 ,mem_rbutton_gpio 
-0593 20403f96 call mouse_gpio_config_input_pu 
+058e 6fe0c91d fetch 1 ,mem_rbutton_gpio 
+058f 204005b2 call p_mouse_gpio_config_output_high 
+0590 2040416a call mouse_check_rkey_gpio 
+0591 6848c91d fetcht 1 ,mem_rbutton_gpio 
+0592 20403f96 call mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-0594 6fe0c91e fetch 1 ,mem_mbutton_gpio 
-0595 204005b3 call p_mouse_gpio_config_output_high 
-0596 20404170 call mouse_check_mkey_gpio 
-0597 6848c91e fetcht 1 ,mem_mbutton_gpio 
-0598 20203f96 branch mouse_gpio_config_input_pu 
+0593 6fe0c91e fetch 1 ,mem_mbutton_gpio 
+0594 204005b2 call p_mouse_gpio_config_output_high 
+0595 20404170 call mouse_check_mkey_gpio 
+0596 6848c91e fetcht 1 ,mem_mbutton_gpio 
+0597 20203f96 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-0599 6fe0c911 fetch 1 ,mem_bk_button_gpio 
-059a c17f8000 rtneq gpio_disable 
-059b 704ba703 jam mouse_bk_key ,mem_mouse_key_temp 
-059c 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
-059d 1fe22600 copy pdata ,regc 
-059e 6848c911 fetcht 1 ,mem_bk_button_gpio 
-059f 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
-05a0 c07f85a2 beq gpio_disable ,p_mouse_3io6key_bk_check 
-05a1 2020417e branch mouse_check_bkkey_gpio_next 
+0598 6fe0c911 fetch 1 ,mem_bk_button_gpio 
+0599 c17f8000 rtneq gpio_disable 
+059a 704ba703 jam mouse_bk_key ,mem_mouse_key_temp 
+059b 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
+059c 1fe22600 copy pdata ,regc 
+059d 6848c911 fetcht 1 ,mem_bk_button_gpio 
+059e 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+059f c07f85a1 beq gpio_disable ,p_mouse_3io6key_bk_check 
+05a0 2020417e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-05a2 6fe0c911 fetch 1 ,mem_bk_button_gpio 
-05a3 204005b6 call p_mouse_gpio_config_output_low 
-05a4 6848c911 fetcht 1 ,mem_bk_button_gpio 
-05a5 2020418b branch mouse_3io6key_bk_check 
+05a1 6fe0c911 fetch 1 ,mem_bk_button_gpio 
+05a2 204005b5 call p_mouse_gpio_config_output_low 
+05a3 6848c911 fetcht 1 ,mem_bk_button_gpio 
+05a4 2020418b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-05a6 6fe0c912 fetch 1 ,mem_fw_button_gpio 
-05a7 c17f8000 rtneq gpio_disable 
-05a8 704ba704 jam mouse_fw_key ,mem_mouse_key_temp 
-05a9 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
-05aa 1fe22600 copy pdata ,regc 
-05ab 6848c912 fetcht 1 ,mem_fw_button_gpio 
-05ac 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
-05ad c07f85af beq gpio_disable ,p_mouse_3io6key_fw_check 
-05ae 20204197 branch mouse_check_fwkey_gpio_next 
+05a5 6fe0c912 fetch 1 ,mem_fw_button_gpio 
+05a6 c17f8000 rtneq gpio_disable 
+05a7 704ba704 jam mouse_fw_key ,mem_mouse_key_temp 
+05a8 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
+05a9 1fe22600 copy pdata ,regc 
+05aa 6848c912 fetcht 1 ,mem_fw_button_gpio 
+05ab 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+05ac c07f85ae beq gpio_disable ,p_mouse_3io6key_fw_check 
+05ad 20204197 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-05af 6fe0c912 fetch 1 ,mem_fw_button_gpio 
-05b0 204005b6 call p_mouse_gpio_config_output_low 
-05b1 6848c912 fetcht 1 ,mem_fw_button_gpio 
-05b2 202041a4 branch mouse_3io6key_fw_check 
+05ae 6fe0c912 fetch 1 ,mem_fw_button_gpio 
+05af 204005b5 call p_mouse_gpio_config_output_low 
+05b0 6848c912 fetcht 1 ,mem_fw_button_gpio 
+05b1 202041a4 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-05b3 c17f8000 rtneq gpio_disable 
-05b4 d840003f arg gpcfg_output_high ,temp 
-05b5 2020612c branch gpio_config_function_int 
+05b2 c17f8000 rtneq gpio_disable 
+05b3 d840003f arg gpcfg_output_high ,temp 
+05b4 2020612c branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-05b6 c17f8000 rtneq gpio_disable 
-05b7 d840003e arg gpcfg_output_low ,temp 
-05b8 2020612c branch gpio_config_function_int 
+05b5 c17f8000 rtneq gpio_disable 
+05b6 d840003e arg gpcfg_output_low ,temp 
+05b7 2020612c branch gpio_config_function_int 
 
 p_mouse_ghost_key_check:
-05b9 704ba900 jam 0 ,mem_mouse_matrix_key_cow_count 
-05ba 704baa00 jam 0 ,mem_mouse_matrix_key_row_count 
-05bb 704bab00 jam 0 ,mem_mouse_ghost_flag 
-05bc 1fe20400 copy pdata ,temp 
-05bd 204005c0 call p_mouse_ghost_key_check_l_fw 
-05be 204005c3 call p_mouse_ghost_key_check_r_bk 
-05bf 20204133 branch mouse_ghost_key_check + 6 
+05b8 704ba900 jam 0 ,mem_mouse_matrix_key_cow_count 
+05b9 704baa00 jam 0 ,mem_mouse_matrix_key_row_count 
+05ba 704bab00 jam 0 ,mem_mouse_ghost_flag 
+05bb 1fe20400 copy pdata ,temp 
+05bc 204005bf call p_mouse_ghost_key_check_l_fw 
+05bd 204005c2 call p_mouse_ghost_key_check_r_bk 
+05be 20204133 branch mouse_ghost_key_check + 6 
 
 p_mouse_ghost_key_check_l_fw:
-05c0 18417e11 and temp ,mouse_l_fw_button ,pdata 
-05c1 c008c14e beq mouse_l_fw_button ,mouse_matrix_cow_more_than_one_key 
-05c2 20600000 rtn 
+05bf 18417e11 and temp ,mouse_l_fw_button ,pdata 
+05c0 c008c14e beq mouse_l_fw_button ,mouse_matrix_cow_more_than_one_key 
+05c1 20600000 rtn 
 
 p_mouse_ghost_key_check_r_bk:
-05c3 18417e0a and temp ,mouse_r_bk_button ,pdata 
-05c4 c005414e beq mouse_r_bk_button ,mouse_matrix_cow_more_than_one_key 
-05c5 20600000 rtn 
+05c2 18417e0a and temp ,mouse_r_bk_button ,pdata 
+05c3 c005414e beq mouse_r_bk_button ,mouse_matrix_cow_more_than_one_key 
+05c4 20600000 rtn 
 
 p_usb_class_type:
-05c6 793f8023 set0 mark_isstr ,mark 
-05c7 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-05c8 1fe17e80 and_into 0x80 ,pdata 
-05c9 c00005cb beq out_device ,p_usb_out_device 
-05ca 20207aa1 branch usb_class_type + 4 
+05c5 793f8023 set0 mark_isstr ,mark 
+05c6 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+05c7 1fe17e80 and_into 0x80 ,pdata 
+05c8 c00005ca beq out_device ,p_usb_out_device 
+05c9 20207aa1 branch usb_class_type + 4 
 
 p_usb_out_device:
-05cb 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-05cc 1ff1fe00 rshift4 pdata ,pdata 
-05cd 1fe37e00 rshift pdata ,pdata 
-05ce 1fe17e03 and_into 0x03 ,pdata 
-05cf c0007ac4 beq standard_req ,usb_out_standard_req 
-05d0 c00085d2 beq class_req ,p_usb_out_class_req 
-05d1 20207ab4 branch usb_out_device + 4 
+05ca 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+05cb 1ff1fe00 rshift4 pdata ,pdata 
+05cc 1fe37e00 rshift pdata ,pdata 
+05cd 1fe17e03 and_into 0x03 ,pdata 
+05ce c0007ac4 beq standard_req ,usb_out_standard_req 
+05cf c00085d1 beq class_req ,p_usb_out_class_req 
+05d0 20207ab4 branch usb_out_device + 4 
 
 p_usb_out_class_req:
-05d2 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
-05d3 c00485d5 beq set_report ,p_usb_set_report 
-05d4 20207acd branch usb_out_class_req + 1 
+05d1 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+05d2 c00485d4 beq set_report ,p_usb_set_report 
+05d3 20207acd branch usb_out_class_req + 1 
 
 p_usb_set_report:
-05d5 20003a98 nop 15000 
-05d6 20207c4a branch usb_set_report 
+05d4 20003a98 nop 15000 
+05d5 20207c4a branch usb_set_report 
 
 p_usb_tx:
-05d7 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
-05d8 207a0000 rtn blank 
-05d9 6ff08c24 fetch 1 ,core_usb_txbusy 
-05da 1fe17e0f and_into 0x0f ,pdata 
-05db 243a7d17 nbranch usb_inwake_state_tx_dispose ,blank 
-05dc 20207ccc branch usb_tx + 3 
+05d6 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+05d7 207a0000 rtn blank 
+05d8 6ff08c24 fetch 1 ,core_usb_txbusy 
+05d9 1fe17e0f and_into 0x0f ,pdata 
+05da 243a7d17 nbranch usb_inwake_state_tx_dispose ,blank 
+05db 20207ccc branch usb_tx + 3 
 
 p_usb_store_mem:
-05dd d8c009f6 arg mem_usb_status ,contr 
-05de d8a00c4b arg mem_usb_mem_temp ,contw 
-05df 20207d7f branch memcpy16 
+05dc d8c009f6 arg mem_usb_status ,contr 
+05dd d8a00c4b arg mem_usb_mem_temp ,contw 
+05de 20207d7f branch memcpy16 
 
 p_usb_get_mem:
-05e0 d8a009f6 arg mem_usb_status ,contw 
-05e1 d8c00c4b arg mem_usb_mem_temp ,contr 
-05e2 20207d7f branch memcpy16 
+05df d8a009f6 arg mem_usb_status ,contw 
+05e0 d8c00c4b arg mem_usb_mem_temp ,contr 
+05e1 20207d7f branch memcpy16 
 
 p_mouse_usb_check_enable:
-05e3 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-05e4 c4068000 rtnbit0 mouse_enable_usb 
-05e5 704930a5 jam mouse_usb_interface_remove ,mem_mouse_usb_vdd_status 
-05e6 20600000 rtn 
+05e2 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+05e3 c4068000 rtnbit0 mouse_enable_usb 
+05e4 704930a5 jam mouse_usb_interface_remove ,mem_mouse_usb_vdd_status 
+05e5 20600000 rtn 
 
 p_mouse_usb_config_param:
-05e7 204005f0 call p_mouse_usb_config_kb_check 
-05e8 20400618 call p_mouse_usb_report_rate_set 
-05e9 204005f5 call p_mouse_usb_config_param_setup 
+05e6 204005ef call p_mouse_usb_config_kb_check 
+05e7 20400617 call p_mouse_usb_report_rate_set 
+05e8 204005f4 call p_mouse_usb_config_param_setup 
 
 p_mouse_usb_device_name_config:
-05ea 6fe0cc91 fetch 1 ,mem_usb_device_name_retention 
-05eb 207a0000 rtn blank 
-05ec d8c04c91 arg mem_usb_device_name_retention ,contr 
-05ed d8a00b09 arg mem_string2 ,contw 
-05ee df20001e arg 30 ,loopcnt 
-05ef 20207dd4 branch memcpy 
+05e9 6fe0cc91 fetch 1 ,mem_usb_device_name_retention 
+05ea 207a0000 rtn blank 
+05eb d8c04c91 arg mem_usb_device_name_retention ,contr 
+05ec d8a00b09 arg mem_string2 ,contw 
+05ed df20001e arg 30 ,loopcnt 
+05ee 20207dd4 branch memcpy 
 
 p_mouse_usb_config_kb_check:
-05f0 70493100 jam dongle_kb_bind_eeprom_offect ,mem_mouse_usb_keyboard_flag 
-05f1 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-05f2 c40a8000 rtnbit0 mouse_enable_keyboard 
-05f3 7049315a jam dongle_kb_bind_success ,mem_mouse_usb_keyboard_flag 
-05f4 20600000 rtn 
+05ef 70493100 jam dongle_kb_bind_eeprom_offect ,mem_mouse_usb_keyboard_flag 
+05f0 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+05f1 c40a8000 rtnbit0 mouse_enable_keyboard 
+05f2 7049315a jam dongle_kb_bind_success ,mem_mouse_usb_keyboard_flag 
+05f3 20600000 rtn 
 
 p_mouse_usb_config_param_setup:
-05f5 20407a5b call usb_tx_interval_config 
-05f6 204005f9 call p_mouse_usb_vid_pid_config 
+05f4 20407a5b call usb_tx_interval_config 
+05f5 204005f8 call p_mouse_usb_vid_pid_config 
 
 p_mouse_usb_hid_icon_config:
-05f7 6fe0c931 fetch 1 ,mem_mouse_usb_keyboard_flag 
-05f8 202036ee branch dongle_usb_hid_icon_config + 1 
+05f6 6fe0c931 fetch 1 ,mem_mouse_usb_keyboard_flag 
+05f7 202036ee branch dongle_usb_hid_icon_config + 1 
 
 p_mouse_usb_vid_pid_config:
-05f9 6fe08b48 fetch 1 ,mem_usb_vid_pid 
-05fa 207a0000 rtn blank 
-05fb 6fe0c931 fetch 1 ,mem_mouse_usb_keyboard_flag 
-05fc c02d36eb beq dongle_kb_bind_success ,dongle_usb_vid_pid_for_suit 
-05fd 202036e8 branch dongle_usb_vid_pid_for_mouse_only_auto_pair 
+05f8 6fe08b48 fetch 1 ,mem_usb_vid_pid 
+05f9 207a0000 rtn blank 
+05fa 6fe0c931 fetch 1 ,mem_mouse_usb_keyboard_flag 
+05fb c02d36eb beq dongle_kb_bind_success ,dongle_usb_vid_pid_for_suit 
+05fc 202036e8 branch dongle_usb_vid_pid_for_mouse_only_auto_pair 
 
 p_usb_timer_check:
-05fe 20407ec7 call disable_user 
-05ff 684a4ace fetcht 4 ,mem_btclk_sensor 
-0600 1c427e00 copy clkn_bt ,pdata 
-0601 98467c00 isub temp ,null 
-0602 2441060d ncall p_usb_timer_timeout ,positive 
-0603 1fe22400 copy pdata ,regb 
-0604 6fe24ace fetch 4 ,mem_btclk_sensor 
-0605 6848c92e fetcht 1 ,mem_wire_usb_interval 
-0606 98408400 iadd temp ,temp 
-0607 1a427e00 copy regb ,pdata 
-0608 98467c00 isub temp ,null 
-0609 24610000 nrtn positive 
-060a 793ffe1c set0 28 ,pdata 
-060b 67e24ace store 4 ,mem_btclk_sensor 
-060c 20207ec5 branch enable_user 
+05fd 20407ec7 call disable_user 
+05fe 684a4ace fetcht 4 ,mem_btclk_sensor 
+05ff 1c427e00 copy clkn_bt ,pdata 
+0600 98467c00 isub temp ,null 
+0601 2441060c ncall p_usb_timer_timeout ,positive 
+0602 1fe22400 copy pdata ,regb 
+0603 6fe24ace fetch 4 ,mem_btclk_sensor 
+0604 6848c92e fetcht 1 ,mem_wire_usb_interval 
+0605 98408400 iadd temp ,temp 
+0606 1a427e00 copy regb ,pdata 
+0607 98467c00 isub temp ,null 
+0608 24610000 nrtn positive 
+0609 793ffe1c set0 28 ,pdata 
+060a 67e24ace store 4 ,mem_btclk_sensor 
+060b 20207ec5 branch enable_user 
 
 p_usb_timer_timeout:
-060d 20628000 rtn zero 
-060e 79207e1c set1 28 ,pdata 
-060f 20600000 rtn 
+060c 20628000 rtn zero 
+060d 79207e1c set1 28 ,pdata 
+060e 20600000 rtn 
 
 p_usb_timer_init:
-0610 58000000 setarg 0 
-0611 67e24ace store 4 ,mem_btclk_sensor 
-0612 20600000 rtn 
+060f 58000000 setarg 0 
+0610 67e24ace store 4 ,mem_btclk_sensor 
+0611 20600000 rtn 
 
 p_select_system_clk_24m_dpll:
-0613 7041f018 jam system_clk_24m ,mem_system_clk 
-0614 70804201 jam clksel_dpll_24m ,core_clksel 
-0615 5800176f setarg 5999 
-0616 67f10040 store 2 ,core_halfslot 
-0617 20206312 branch calc_new_param 
+0612 7041f018 jam system_clk_24m ,mem_system_clk 
+0613 70804201 jam clksel_dpll_24m ,core_clksel 
+0614 5800176f setarg 5999 
+0615 67f10040 store 2 ,core_halfslot 
+0616 20206312 branch calc_new_param 
 
 p_mouse_usb_report_rate_set:
-0618 20400610 call p_usb_timer_init 
-0619 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-061a c28e861f bbit1 mouse_enable_usb_250 ,p_usb_report_rate_set_250hz 
-061b c28f0621 bbit1 mouse_enable_usb_500 ,p_usb_report_rate_set_500hz 
-061c c28f8623 bbit1 mouse_enable_usb_1000 ,p_usb_report_rate_set_1000hz 
+0617 2040060f call p_usb_timer_init 
+0618 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+0619 c28e861e bbit1 mouse_enable_usb_250 ,p_usb_report_rate_set_250hz 
+061a c28f0620 bbit1 mouse_enable_usb_500 ,p_usb_report_rate_set_500hz 
+061b c28f8622 bbit1 mouse_enable_usb_1000 ,p_usb_report_rate_set_1000hz 
 
 p_usb_report_rate_set_125hz:
-061d 70492e20 jam 32 ,mem_wire_usb_interval 
-061e 20600000 rtn 
+061c 70492e20 jam 32 ,mem_wire_usb_interval 
+061d 20600000 rtn 
 
 p_usb_report_rate_set_250hz:
-061f 70492e10 jam 16 ,mem_wire_usb_interval 
-0620 20600000 rtn 
+061e 70492e10 jam 16 ,mem_wire_usb_interval 
+061f 20600000 rtn 
 
 p_usb_report_rate_set_500hz:
-0621 70492e08 jam 8 ,mem_wire_usb_interval 
-0622 20600000 rtn 
+0620 70492e08 jam 8 ,mem_wire_usb_interval 
+0621 20600000 rtn 
 
 p_usb_report_rate_set_1000hz:
-0623 70492e04 jam 4 ,mem_wire_usb_interval 
-0624 20600000 rtn 
+0622 70492e04 jam 4 ,mem_wire_usb_interval 
+0623 20600000 rtn 
 
 p_mouse_usb_isr:
-0625 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-0626 c4068000 rtnbit0 mouse_enable_usb 
-0627 2040062b call p_mouse_usb_interface_check 
-0628 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
-0629 c1ad0000 rtnne mouse_usb_interface_insert 
-062a 202079fc branch usb_isr 
+0624 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+0625 c4068000 rtnbit0 mouse_enable_usb 
+0626 2040062a call p_mouse_usb_interface_check 
+0627 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
+0628 c1ad0000 rtnne mouse_usb_interface_insert 
+0629 202079fc branch usb_isr 
 
 p_mouse_usb_interface_check:
-062b 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
-062c 204060fd call gpio_get_bit 
-062d 2420862f nbranch p_mouse_usb_gpio_low ,true 
-062e 2020063d branch p_mouse_usb_gpio_high 
+062a 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
+062b 204060fd call gpio_get_bit 
+062c 2420862e nbranch p_mouse_usb_gpio_low ,true 
+062d 2020063b branch p_mouse_usb_gpio_high 
 
 p_mouse_usb_gpio_low:
-062f 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
-0630 c1528000 rtneq mouse_usb_interface_remove 
-0631 704930a5 jam mouse_usb_interface_remove ,mem_mouse_usb_vdd_status 
-0632 704caf00 jam 0 ,mem_usb_mode_enable 
-0633 704cbe00 jam 0 ,mem_mouse_pair_success 
-0634 700bfa00 jam 0 ,mem_usb_device_enumeration_endflag 
-0635 7009f600 jam 0 ,mem_usb_status 
-0636 700bec00 jam 0 ,mem_usb_state 
-0637 6ff10050 fetch 2 ,core_clkoff 
-0638 79207e0a set1 clock_off_usb ,pdata 
-0639 67f10050 store 2 ,core_clkoff 
-063a 70409901 jam 1 ,mem_lpm_mode 
-063b 20406321 call select_system_clk_12m_dpll 
-063c 20200352 branch p_mouse_soft_reset 
+062e 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
+062f c1528000 rtneq mouse_usb_interface_remove 
+0630 704930a5 jam mouse_usb_interface_remove ,mem_mouse_usb_vdd_status 
+0631 704caf00 jam 0 ,mem_usb_mode_enable 
+0632 700bfa00 jam 0 ,mem_usb_device_enumeration_endflag 
+0633 7009f600 jam 0 ,mem_usb_status 
+0634 700bec00 jam 0 ,mem_usb_state 
+0635 6ff10050 fetch 2 ,core_clkoff 
+0636 79207e0a set1 clock_off_usb ,pdata 
+0637 67f10050 store 2 ,core_clkoff 
+0638 70409901 jam 1 ,mem_lpm_mode 
+0639 20406321 call select_system_clk_12m_dpll 
+063a 20200352 branch p_mouse_soft_reset 
 
 p_mouse_usb_gpio_high:
-063d 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
-063e c12d0000 rtneq mouse_usb_interface_insert 
-063f 7049305a jam mouse_usb_interface_insert ,mem_mouse_usb_vdd_status 
-0640 58000000 setarg 0 
-0641 67e14887 store 2 ,mem_24g_pair_timeout 
-0642 67e1488b store 2 ,mem_24g_reconn_timeout 
-0643 704caf01 jam 1 ,mem_usb_mode_enable 
-0644 704cbe01 jam 1 ,mem_mouse_pair_success 
-0645 204002e0 call p_mouse_multi_led_blink_disable 
-0646 70409900 jam 0 ,mem_lpm_mode 
-0647 20400613 call p_select_system_clk_24m_dpll 
-0648 20404831 call mouse_24g_stop 
-0649 20400045 call p_mouse_stop_bluetooth_mode 
-064a 7855fc00 disable wake 
-064b 2040430a call mouse_init_sensor_reset 
-064c 580005e7 setarg p_mouse_usb_config_param 
-064d 67e10b45 store 2 ,mem_cb_usb_config 
-064e 6fe0cc87 fetch 1 ,mem_usb_tx_interval_retention 
-064f 67e08b47 store 1 ,mem_usb_tx_interval 
-0650 d8c04c88 arg mem_usb_vid_pid_retention ,contr 
-0651 d8a00b48 arg mem_usb_vid_pid ,contw 
-0652 df200009 arg 9 ,loopcnt 
-0653 20407dd4 call memcpy 
-0654 20207a08 branch usb_init 
+063b 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
+063c c12d0000 rtneq mouse_usb_interface_insert 
+063d 7049305a jam mouse_usb_interface_insert ,mem_mouse_usb_vdd_status 
+063e 704caf01 jam 1 ,mem_usb_mode_enable 
+063f 58000000 setarg 0 
+0640 67e14887 store 2 ,mem_24g_pair_timeout 
+0641 67e1488b store 2 ,mem_24g_reconn_timeout 
+0642 204002e0 call p_mouse_multi_led_blink_disable 
+0643 70409900 jam 0 ,mem_lpm_mode 
+0644 20400612 call p_select_system_clk_24m_dpll 
+0645 20404831 call mouse_24g_stop 
+0646 20400045 call p_mouse_stop_bluetooth_mode 
+0647 7855fc00 disable wake 
+0648 2040430a call mouse_init_sensor_reset 
+0649 580005e6 setarg p_mouse_usb_config_param 
+064a 67e10b45 store 2 ,mem_cb_usb_config 
+064b 6fe0cc87 fetch 1 ,mem_usb_tx_interval_retention 
+064c 67e08b47 store 1 ,mem_usb_tx_interval 
+064d d8c04c88 arg mem_usb_vid_pid_retention ,contr 
+064e d8a00b48 arg mem_usb_vid_pid ,contw 
+064f df200009 arg 9 ,loopcnt 
+0650 20407dd4 call memcpy 
+0651 20207a08 branch usb_init 
+
+p_mouse_usb_mode_flag_check:
+0652 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+0653 c4068000 rtnbit0 mouse_enable_usb 
+0654 6fe0c930 fetch 1 ,mem_mouse_usb_vdd_status 
+0655 c02d0658 beq mouse_usb_interface_insert ,p_mouse_usb_mode_flag_enable 
+0656 c052865c beq mouse_usb_interface_remove ,p_mouse_usb_mode_flag_disable 
+0657 20600000 rtn 
+
+p_mouse_usb_mode_flag_enable:
+0658 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
+0659 207a0000 rtn blank 
+065a 704cbe01 jam 1 ,mem_mouse_pair_success 
+065b 20600000 rtn 
+
+p_mouse_usb_mode_flag_disable:
+065c 6fe0ccaf fetch 1 ,mem_usb_mode_enable 
+065d 207a0000 rtn blank 
+065e 704cbe00 jam 0 ,mem_mouse_pair_success 
+065f 20600000 rtn 
 
 p_mouse_usb_mode:
-0655 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-0656 c4068000 rtnbit0 mouse_enable_usb 
-0657 6ff08c02 fetch 1 ,core_usb_addr 
-0658 67e0c92f store 1 ,mem_usb_addr 
-0659 c4038000 rtnbit0 7 
-065a 204005fe call p_usb_timer_check 
-065b 24740000 nrtn user 
-065c 20403fb0 call mouse_motion 
-065d 24740000 nrtn user 
-065e 2020065f branch p_mouse_push_data_to_usb 
+0660 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+0661 c4068000 rtnbit0 mouse_enable_usb 
+0662 6ff08c02 fetch 1 ,core_usb_addr 
+0663 67e0c92f store 1 ,mem_usb_addr 
+0664 c4038000 rtnbit0 7 
+0665 204005fd call p_usb_timer_check 
+0666 24740000 nrtn user 
+0667 20403fb0 call mouse_motion 
+0668 24740000 nrtn user 
+0669 2020066a branch p_mouse_push_data_to_usb 
 
 p_mouse_push_data_to_usb:
-065f 6ff08c02 fetch 1 ,core_usb_addr 
-0660 c4038000 rtnbit0 7 
-0661 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
-0662 c30a8665 bbit0 mouse_enable_keyboard ,p_mouse_push_mouse_data_to_usb 
-0663 6fe0cb9c fetch 1 ,mem_customer_key 
-0664 c000866b beq 1 ,p_mouse_push_keyboard_data_to_usb 
+066a 6ff08c02 fetch 1 ,core_usb_addr 
+066b c4038000 rtnbit0 7 
+066c 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+066d c30a8670 bbit0 mouse_enable_keyboard ,p_mouse_push_mouse_data_to_usb 
+066e 6fe0cb9c fetch 1 ,mem_customer_key 
+066f c0008676 beq 1 ,p_mouse_push_keyboard_data_to_usb 
 
 p_mouse_push_mouse_data_to_usb:
-0665 2040370f call dongle_usb_tx_ms_data 
-0666 58000001 setarg ms_report_id 
-0667 67e08bff store 1 ,mem_usb_mouse_data 
-0668 6fe3c8d4 fetch 7 ,mem_mouse_key 
-0669 e7e38005 istore 7 ,contw 
-066a 20600000 rtn 
+0670 2040370f call dongle_usb_tx_ms_data 
+0671 58000001 setarg ms_report_id 
+0672 67e08bff store 1 ,mem_usb_mouse_data 
+0673 6fe3c8d4 fetch 7 ,mem_mouse_key 
+0674 e7e38005 istore 7 ,contw 
+0675 20600000 rtn 
 
 p_mouse_push_keyboard_data_to_usb:
-066b 6fe0cb9d fetch 1 ,mem_customer_data_trigger 
-066c 203a0676 branch p_mouse_push_release_keyboard_data_to_usb ,blank 
-066d 6fe44bde fetch 8 ,mem_customer_key_press + 1 
+0676 6fe0cb9d fetch 1 ,mem_customer_data_trigger 
+0677 203a0681 branch p_mouse_push_release_keyboard_data_to_usb ,blank 
+0678 6fe44bde fetch 8 ,mem_customer_key_press + 1 
 
 p_mouse_push_keyboard_package_data_to_usb:
-066e 67e4095c store 8 ,mem_pdatatemp 
-066f 6fe0cbdd fetch 1 ,mem_customer_key_press 
-0670 c0018678 beq kb_multikey_report_id ,p_mouse_push_multimedia_key_data_to_usb 
-0671 c001067f beq kb_system_conctrl_report_id ,p_mouse_push_systemctrl_key_data_to_usb 
-0672 2040371d call dongle_usb_tx_kb_data 
-0673 6fe4095c fetch 8 ,mem_pdatatemp 
-0674 67e40c0f store 8 ,mem_usb_kb_data 
-0675 20600000 rtn 
+0679 67e4095c store 8 ,mem_pdatatemp 
+067a 6fe0cbdd fetch 1 ,mem_customer_key_press 
+067b c0018683 beq kb_multikey_report_id ,p_mouse_push_multimedia_key_data_to_usb 
+067c c001068a beq kb_system_conctrl_report_id ,p_mouse_push_systemctrl_key_data_to_usb 
+067d 2040371d call dongle_usb_tx_kb_data 
+067e 6fe4095c fetch 8 ,mem_pdatatemp 
+067f 67e40c0f store 8 ,mem_usb_kb_data 
+0680 20600000 rtn 
 
 p_mouse_push_release_keyboard_data_to_usb:
-0676 6fe44be7 fetch 8 ,mem_customer_key_release + 1 
-0677 2020066e branch p_mouse_push_keyboard_package_data_to_usb 
+0681 6fe44be7 fetch 8 ,mem_customer_key_release + 1 
+0682 20200679 branch p_mouse_push_keyboard_package_data_to_usb 
 
 p_mouse_push_multimedia_key_data_to_usb:
-0678 20403710 call dongle_usb_tx_enable_ep2 
-0679 700bf821 jam usb_ep2_multikey ,mem_usb_ep2_data 
-067a 58000003 setarg kb_multikey_report_id 
-067b 67e08c1f store 1 ,mem_usb_kb_multikey 
-067c 6fe1095c fetch 2 ,mem_pdatatemp 
-067d e7e10005 istore 2 ,contw 
-067e 20600000 rtn 
+0683 20403710 call dongle_usb_tx_enable_ep2 
+0684 700bf821 jam usb_ep2_multikey ,mem_usb_ep2_data 
+0685 58000003 setarg kb_multikey_report_id 
+0686 67e08c1f store 1 ,mem_usb_kb_multikey 
+0687 6fe1095c fetch 2 ,mem_pdatatemp 
+0688 e7e10005 istore 2 ,contw 
+0689 20600000 rtn 
 
 p_mouse_push_systemctrl_key_data_to_usb:
-067f 20403710 call dongle_usb_tx_enable_ep2 
-0680 700bf822 jam usb_ep2_systemkey ,mem_usb_ep2_data 
-0681 58000002 setarg kb_system_conctrl_report_id 
-0682 67e08c2f store 1 ,mem_usb_kb_system 
-0683 6fe0895c fetch 1 ,mem_pdatatemp 
-0684 e7e08005 istore 1 ,contw 
-0685 20600000 rtn 
+068a 20403710 call dongle_usb_tx_enable_ep2 
+068b 700bf822 jam usb_ep2_systemkey ,mem_usb_ep2_data 
+068c 58000002 setarg kb_system_conctrl_report_id 
+068d 67e08c2f store 1 ,mem_usb_kb_system 
+068e 6fe0895c fetch 1 ,mem_pdatatemp 
+068f e7e08005 istore 1 ,contw 
+0690 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AF/branch/mouse/mouse_public_4mode_usb/program/patch.prog	(revision 3611)
+++ /YC1308AF/branch/mouse/mouse_public_4mode_usb/program/patch.prog	(working copy)
@@ -1603,6 +1603,7 @@
 ifdef USB
 	call p_mouse_usb_isr
 	call p_mouse_usb_mode
+	call p_mouse_usb_mode_flag_check
 endif
 	rtn
 
@@ -1828,7 +1829,6 @@
 	store 1,mem_mouse_le_send_conn_param_update
 	store 1,mem_mouse_le_send_conn_param_update_timer
 	store 1,mem_mouse_le_bb_connected_flag
-	jam 0,mem_mouse_pair_success
 
 	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
 	jam 0,mem_mouse_clear_sensor_data_flag
@@ -1849,8 +1849,6 @@
 	branch mouse_bb_event_connected
 
 p_mouse_bb_disconnected:
-	jam 0,mem_mouse_pair_success
-
 	jam 0,mem_mouse_enter_sniff_count	
 	jam 0,mem_mouse_bt_send_first_package_flag
 	call mouse_bt_sniff_param_interval_setup
@@ -2561,7 +2559,6 @@
 	rtneq MOUSE_USB_INTERFACE_REMOVE
 	jam MOUSE_USB_INTERFACE_REMOVE,mem_mouse_usb_vdd_status
 	jam 0,mem_usb_mode_enable		//enable select device
-	jam 0,mem_mouse_pair_success
 	jam 0,mem_usb_device_enumeration_endflag
 	jam 0,mem_usb_status
 	jam 0,mem_usb_state
@@ -2580,11 +2577,10 @@
 	fetch 1,mem_mouse_usb_vdd_status
 	rtneq MOUSE_USB_INTERFACE_INSERT
 	jam MOUSE_USB_INTERFACE_INSERT,mem_mouse_usb_vdd_status
+	jam 1,mem_usb_mode_enable		//disabl select device
 	setarg 0
 	store 2,mem_24g_pair_timeout
 	store 2,mem_24g_reconn_timeout
-	jam 1,mem_usb_mode_enable		//can not select device
-	jam 1,mem_mouse_pair_success
 	call p_mouse_multi_led_blink_disable
 	jam 0,mem_lpm_mode
 	call p_select_system_clk_24M_dpll
@@ -2603,6 +2599,25 @@
 	call memcpy
 	branch usb_init
 
+p_mouse_usb_mode_flag_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_USB
+	fetch 1,mem_mouse_usb_vdd_status
+	beq MOUSE_USB_INTERFACE_INSERT,p_mouse_usb_mode_flag_enable
+	beq MOUSE_USB_INTERFACE_REMOVE,p_mouse_usb_mode_flag_disable
+	rtn
+
+p_mouse_usb_mode_flag_enable:
+	fetch 1,mem_usb_mode_enable
+	rtn blank
+	jam 1,mem_mouse_pair_success	
+	rtn
+p_mouse_usb_mode_flag_disable:
+	fetch 1,mem_usb_mode_enable
+	rtn blank
+	jam 0,mem_mouse_pair_success	
+	rtn
+
 p_mouse_usb_mode:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	rtnbit0 MOUSE_ENABLE_USB
