Index: output/flash.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/flash.dat	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/flash.dat	(working copy)
@@ -11,7 +11,7 @@
 20
 40
 03
-b0
+b2
 68
 00
 c1
@@ -39,7 +39,7 @@
 20
 40
 03
-28
+29
 20
 40
 07
@@ -83,11 +83,11 @@
 20
 20
 02
-fa
+fb
 58
 00
 03
-71
+72
 60
 01
 4d
@@ -95,7 +95,7 @@
 58
 00
 03
-9c
+9e
 60
 01
 41
@@ -111,7 +111,7 @@
 58
 00
 03
-cb
+cd
 60
 01
 41
@@ -127,7 +127,7 @@
 58
 00
 04
-03
+05
 60
 01
 41
@@ -135,7 +135,7 @@
 58
 00
 03
-f0
+f2
 60
 01
 41
@@ -175,7 +175,7 @@
 20
 40
 02
-dc
+de
 20
 40
 04
@@ -199,7 +199,7 @@
 20
 20
 03
-99
+9b
 58
 00
 01
@@ -491,7 +491,7 @@
 20
 40
 03
-82
+83
 20
 40
 6a
@@ -687,7 +687,7 @@
 c0
 00
 83
-74
+75
 68
 00
 c6
@@ -695,7 +695,7 @@
 c2
 80
 83
-74
+75
 20
 40
 00
@@ -963,7 +963,7 @@
 20
 40
 02
-fc
+fd
 68
 12
 00
@@ -1531,7 +1531,7 @@
 20
 40
 03
-8e
+8f
 70
 4c
 5f
@@ -2739,7 +2739,7 @@
 20
 40
 03
-78
+79
 20
 40
 00
@@ -2815,7 +2815,7 @@
 c0
 01
 03
-6a
+6b
 20
 40
 05
@@ -2851,7 +2851,7 @@
 20
 20
 03
-28
+29
 68
 00
 cc
@@ -2934,8 +2934,16 @@
 01
 20
 40
+02
+de
+20
+20
+2b
+fa
+20
+40
 03
-28
+29
 20
 40
 40
@@ -2947,11 +2955,11 @@
 c0
 18
 02
-e4
+e6
 c0
 18
 82
-f5
+f6
 20
 40
 40
@@ -2963,11 +2971,11 @@
 20
 20
 02
-de
+e0
 20
 40
 03
-94
+95
 68
 00
 c6
@@ -2975,7 +2983,7 @@
 c0
 2d
 02
-e8
+ea
 20
 20
 40
@@ -3020,10 +3028,6 @@
 40
 64
 13
-20
-00
-2e
-e0
 1a
 60
 a6
@@ -3031,11 +3035,11 @@
 20
 20
 02
-ed
+ef
 20
 40
 03
-94
+95
 68
 00
 c6
@@ -3127,7 +3131,7 @@
 20
 40
 03
-59
+5a
 20
 40
 44
@@ -3147,7 +3151,7 @@
 20
 22
 83
-4a
+4b
 60
 09
 47
@@ -3183,27 +3187,27 @@
 20
 40
 03
-59
+5a
 20
 40
 03
-2a
+2b
 20
 40
 03
-41
+42
 20
 40
 03
-36
+37
 20
 40
 03
-2d
+2e
 20
 40
 02
-fe
+ff
 d8
 40
 00
@@ -3227,15 +3231,15 @@
 20
 40
 03
-36
+37
 20
 40
 03
-2d
+2e
 20
 40
 03
-51
+52
 70
 42
 12
@@ -3287,7 +3291,7 @@
 c2
 80
 03
-2d
+2e
 20
 60
 00
@@ -3363,11 +3367,11 @@
 20
 40
 03
-59
+5a
 20
 40
 03
-41
+42
 20
 20
 65
@@ -3375,11 +3379,11 @@
 20
 40
 03
-47
+48
 20
 40
 03
-63
+64
 20
 40
 02
@@ -3407,7 +3411,7 @@
 20
 40
 02
-fe
+ff
 20
 40
 69
@@ -3439,7 +3443,7 @@
 20
 20
 03
-52
+53
 70
 4b
 74
@@ -3475,7 +3479,7 @@
 20
 40
 03
-59
+5a
 d8
 40
 00
@@ -3523,7 +3527,7 @@
 20
 40
 03
-1a
+1b
 20
 20
 01
@@ -3567,7 +3571,7 @@
 20
 40
 03
-80
+81
 d8
 c0
 19
@@ -3575,7 +3579,7 @@
 20
 40
 03
-80
+81
 d8
 c0
 1a
@@ -3583,7 +3587,7 @@
 20
 40
 03
-80
+81
 d8
 c0
 1b
@@ -3607,7 +3611,7 @@
 20
 40
 03
-80
+81
 d8
 a0
 19
@@ -3615,7 +3619,7 @@
 20
 40
 03
-80
+81
 d8
 a0
 1a
@@ -3623,7 +3627,7 @@
 20
 40
 03
-80
+81
 d8
 a0
 1b
@@ -3631,7 +3635,7 @@
 20
 20
 03
-80
+81
 70
 41
 72
@@ -3671,7 +3675,7 @@
 20
 40
 03
-28
+29
 da
 60
 4b
@@ -3679,7 +3683,11 @@
 20
 40
 02
-ed
+ef
+20
+40
+2b
+fa
 68
 00
 c7
@@ -3715,7 +3723,7 @@
 c0
 7f
 83
-a3
+a5
 68
 00
 c6
@@ -3755,15 +3763,15 @@
 20
 40
 03
-8b
+8c
 20
 40
 03
-8e
+8f
 20
 40
 03
-c6
+c8
 da
 20
 46
@@ -3775,7 +3783,7 @@
 20
 54
 03
-b5
+b7
 20
 60
 00
@@ -3827,7 +3835,7 @@
 20
 34
 03
-bd
+bf
 20
 60
 00
@@ -3939,15 +3947,15 @@
 20
 40
 03
-8b
+8c
 20
 40
 03
-8e
+8f
 20
 40
 03
-c6
+c8
 68
 00
 cb
@@ -3955,7 +3963,7 @@
 c0
 00
 83
-df
+e1
 68
 00
 cb
@@ -4043,7 +4051,7 @@
 20
 40
 03
-f3
+f5
 20
 20
 3e
@@ -4067,7 +4075,7 @@
 20
 20
 84
-01
+03
 20
 40
 05
@@ -4119,31 +4127,31 @@
 c0
 0a
 04
-14
+16
 c0
 0a
 84
-23
+24
 c0
 14
 84
-27
+28
 c0
 19
 04
-29
+2a
 c0
 20
 04
-2b
+2c
 c0
 02
 04
-2d
+2e
 c0
 09
 84
-2d
+2e
 c0
 0c
 b3
@@ -4151,11 +4159,11 @@
 c0
 10
 84
-31
+32
 c0
 00
 84
-33
+34
 c0
 01
 04
@@ -4180,10 +4188,6 @@
 20
 41
 7d
-20
-40
-02
-db
 58
 00
 00
@@ -4207,7 +4211,7 @@
 24
 42
 83
-5b
+5c
 20
 40
 34
@@ -4223,7 +4227,7 @@
 24
 3a
 04
-20
+21
 70
 4b
 6c
@@ -4235,7 +4239,7 @@
 20
 40
 03
-b0
+b2
 20
 20
 41
@@ -4247,7 +4251,7 @@
 20
 40
 03
-1a
+1b
 70
 11
 c6
@@ -4308,10 +4312,6 @@
 40
 04
 8c
-20
-40
-02
-db
 58
 00
 00
@@ -4343,7 +4343,7 @@
 20
 40
 03
-1a
+1b
 70
 11
 c6
@@ -4423,7 +4423,7 @@
 20
 40
 02
-dc
+de
 58
 00
 00
@@ -4687,7 +4687,7 @@
 20
 20
 03
-5f
+60
 da
 60
 4b
@@ -5835,7 +5835,7 @@
 20
 5a
 03
-b9
+bb
 20
 20
 56
@@ -7131,7 +7131,7 @@
 20
 20
 03
-1a
+1b
 20
 40
 58
@@ -7659,7 +7659,7 @@
 20
 40
 03
-59
+5a
 68
 01
 cb
@@ -7695,7 +7695,7 @@
 20
 40
 03
-28
+29
 58
 00
 1f
@@ -8196,8 +8196,8 @@
 20
 07
 fb
-fe
-bf
+a1
+1a
 aa
 55
 08
@@ -9120,7 +9120,7 @@
 00
 a9
 4b
-04
+05
 00
 aa
 55
@@ -9320,7 +9320,7 @@
 20
 40
 04
-27
+28
 70
 46
 c6
@@ -9556,7 +9556,7 @@
 20
 40
 04
-27
+28
 70
 47
 c4
@@ -9628,7 +9628,7 @@
 20
 40
 03
-b0
+b2
 20
 40
 58
@@ -9664,7 +9664,7 @@
 20
 40
 03
-1a
+1b
 20
 40
 3e
@@ -9688,7 +9688,7 @@
 20
 40
 03
-51
+52
 68
 10
 80
@@ -10072,7 +10072,7 @@
 20
 40
 03
-0c
+0d
 68
 00
 c7
@@ -10096,7 +10096,7 @@
 24
 22
 83
-5b
+5c
 68
 09
 4b
@@ -10116,7 +10116,7 @@
 20
 40
 03
-1f
+20
 18
 0a
 7e
@@ -10136,7 +10136,7 @@
 20
 20
 03
-5d
+5e
 20
 60
 00
@@ -10300,7 +10300,7 @@
 20
 20
 03
-1a
+1b
 68
 00
 cb
@@ -10660,7 +10660,7 @@
 20
 20
 03
-74
+75
 68
 02
 4c
@@ -10868,7 +10868,7 @@
 20
 20
 03
-1a
+1b
 58
 00
 00
@@ -10932,7 +10932,7 @@
 20
 20
 03
-74
+75
 68
 02
 4c
@@ -11332,7 +11332,7 @@
 20
 40
 03
-5b
+5c
 20
 40
 34
@@ -11400,7 +11400,7 @@
 20
 40
 03
-63
+64
 68
 09
 4b
@@ -11420,7 +11420,7 @@
 20
 40
 03
-1f
+20
 18
 0a
 7e
@@ -12292,7 +12292,7 @@
 c0
 02
 84
-2f
+30
 20
 20
 4d
@@ -12313,5 +12313,5 @@
 55
 00
 00
-34
-60
+a0
+0d
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/program.lis	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/program.lis	(working copy)
@@ -7,14 +7,14 @@
 p_zcode:
 
 p_wake_from_power:
-0001 204003b0 call p_mouse_data_init 
+0001 204003b2 call p_mouse_data_init 
 0002 6800c1de fetch 1 ,mem_tx_power 
 0003 6000ccea store 1 ,mem_tx_power_temp 
 0004 204006f9 call power_ctrl_pac_succ_cnt_init 
 0005 6800c685 fetch 1 ,mem_ui_button_timeout 
 0006 6000c6da store 1 ,mem_combination_ui_button_count 
 0007 204004c8 call p_mouse_bt_discovery_button_up_init 
-0008 20400328 call p_mouse_spi_init 
+0008 20400329 call p_mouse_spi_init 
 0009 20400797 call p_drawing_optima_init 
 000a 20400014 call p_mouse_cb_fuction 
 000b 20400027 call p_mouse_wakeup_from_power 
@@ -25,22 +25,22 @@
 0010 2040582c call le_set_fixed_ltk 
 0011 20405818 call le_set_config_read_authentication 
 0012 20403e1e call mouse_param_init 
-0013 202002fa branch p_mouse_setting_config 
+0013 202002fb branch p_mouse_setting_config 
 
 p_mouse_cb_fuction:
-0014 58000371 setarg p_mouse_g24_package_data 
+0014 58000372 setarg p_mouse_g24_package_data 
 0015 60014d64 store 2 ,mem_cb_24g_data 
-0016 5800039c setarg p_mouse_le 
+0016 5800039e setarg p_mouse_le 
 0017 600141ef store 2 ,mem_cb_le_process 
 0018 58000634 setarg p_le_mouse_bb_event_connect_complete 
 0019 600141f9 store 2 ,mem_cb_att_write 
-001a 580003cb setarg p_mouse_bt 
+001a 580003cd setarg p_mouse_bt 
 001b 600141f1 store 2 ,mem_cb_bt_process 
 001c 580002aa setarg p_mouse_before_lpm 
 001d 600141ed store 2 ,mem_cb_before_lpm 
-001e 58000403 setarg p_mouse_priority_bb_event 
+001e 58000405 setarg p_mouse_priority_bb_event 
 001f 600141f5 store 2 ,mem_cb_bb_event_process 
-0020 580003f0 setarg p_mouse_idle 
+0020 580003f2 setarg p_mouse_idle 
 0021 600141f3 store 2 ,mem_cb_idle_process 
 0022 5800044a setarg p_mouse_before_hibernate 
 0023 600141eb store 2 ,mem_cb_before_hibernate 
@@ -52,7 +52,7 @@
 0027 58000019 setarg 25 
 0028 60014d76 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
 0029 24558031 ncall p_mouse_24g_transmit_by_interrupt_exit_count_max ,wake 
-002a 204002dc call p_mouse_init_sunt 
+002a 204002de call p_mouse_init_sunt 
 002b 20400450 call p_mouse_sensor_powerdown 
 
 p_mouse_wakeup_no_from_power:
@@ -60,7 +60,7 @@
 002d 6000c71e store 1 ,mem_reconn_times 
 002e 6800c241 fetch 1 ,mem_power_on_flag 
 002f c3810000 rtnbit1 2 
-0030 20200399 branch p_mouse_dpi_config_default 
+0030 2020039b branch p_mouse_dpi_config_default 
 
 p_mouse_24g_transmit_by_interrupt_exit_count_max:
 0031 58000177 setarg 375 
@@ -143,7 +143,7 @@
 0076 d8a009ae arg mem_sp_state ,contw 
 0077 df20000c arg 12 ,loopcnt 
 0078 20407ed4 call clear_mem 
-0079 20400382 call p_mouse_le_txbuff_load 
+0079 20400383 call p_mouse_le_txbuff_load 
 007a 20406a03 call rfcomm_init 
 007b 20405cf6 call init_lmp 
 007c 2455ac65 ncall lpm_disable_exen_output ,wake 
@@ -206,9 +206,9 @@
 00a7 2040070a call power_ctrl_start 
 00a8 204000b6 call g24_long_sleep_shorter_param_update 
 00a9 6800cb26 fetch 1 ,mem_mouse_multi_led_state 
-00aa c0008374 beq on ,p_g24_transmit_by_interrupt_enable 
+00aa c0008375 beq on ,p_g24_transmit_by_interrupt_enable 
 00ab 6800c69a fetch 1 ,mem_mouse_key 
-00ac c2808374 bbit1 1 ,p_g24_transmit_by_interrupt_enable 
+00ac c2808375 bbit1 1 ,p_g24_transmit_by_interrupt_enable 
 
 p_g24_short_sleep:
 00ad 204000e4 call p_g24_lpm_wait 
@@ -305,7 +305,7 @@
 
 p_mouse_setgpio_hibernate:
 00ee 20403ebf call mouse_lpm_before_common 
-00ef 204002fc call p_flash_ncs_disable 
+00ef 204002fd call p_flash_ncs_disable 
 00f0 68120070 hfetch 4 ,core_gpio_oe0 
 00f1 681a0078 hfetcht 4 ,core_gpio_pu0 
 00f2 98418400 ior temp ,temp 
@@ -499,7 +499,7 @@
 017c 20207fe7 branch enable_user 
 
 p_g24_accumulate_mouse_data:
-017d 2040038e call p_mouse_data_xy_release 
+017d 2040038f call p_mouse_data_xy_release 
 017e 704c5f00 jam 0 ,mem_24g_abort_pac 
 017f 1a20fe01 add rega ,1 ,pdata 
 0180 6000cc33 store 1 ,mem_24g_datalen 
@@ -889,7 +889,7 @@
 
 p_mouse_before_lpm:
 02aa c6130000 rtnmark1 mark_24g 
-02ab 20400378 call p_mouse_le_txbuff_save 
+02ab 20400379 call p_mouse_le_txbuff_save 
 02ac 204000ec call p_mouse_setgpio_lpm 
 02ad 6800c040 fetch 1 ,mem_context 
 02ae c30002b1 bbit0 state_inconn ,p_clear_wake 
@@ -918,7 +918,7 @@
 p_mouse_check_reconn_target:
 02bc 204002c8 call p_mouse_tx_power_init 
 02bd 6800c720 fetch 1 ,mem_device_flag 
-02be c001036a beq mode_24g_device ,p_mouse_connect_24g_mode 
+02be c001036b beq mode_24g_device ,p_mouse_connect_24g_mode 
 02bf 2040052f call p_mouse_mode_bt_device1_multi_led_on 
 02c0 6800c210 fetch 1 ,mem_xrecord_mode 
 02c1 c01982cd beq rec_3_mode ,p_mouse3_0_check_reconn_target 
@@ -929,7 +929,7 @@
 02c6 20207ddd branch check_51cmd_start_discovery 
 
 p_device_wake_from_lpm:
-02c7 20200328 branch p_mouse_spi_init 
+02c7 20200329 branch p_mouse_spi_init 
 
 p_mouse_tx_power_init:
 02c8 6800ccea fetch 1 ,mem_tx_power_temp 
@@ -966,481 +966,481 @@
 
 p_mouse_init_sensor_reset:
 02db 704afe01 jam 1 ,mem_mouse_init_sensor_reset_flag 
+02dc 204002de call p_mouse_init_sunt 
+02dd 20202bfa branch delays_5ms 
 
 p_mouse_init_sunt:
-02dc 20400328 call p_mouse_spi_init 
-02dd 204040c0 call mouse_spi_sdio_gpio_pollup 
+02de 20400329 call p_mouse_spi_init 
+02df 204040c0 call mouse_spi_sdio_gpio_pollup 
 
 p_mouse_init_sensor:
-02de 204040d9 call mouse_read_sensor_id 
-02df c01802e4 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-02e0 c01882f5 beq p3065_id1 ,p_mouse_p3065_init_param 
-02e1 204040d1 call mouse_twspi_reset 
-02e2 200003e8 nop 1000 
-02e3 202002de branch p_mouse_init_sensor 
+02e0 204040d9 call mouse_read_sensor_id 
+02e1 c01802e6 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+02e2 c01882f6 beq p3065_id1 ,p_mouse_p3065_init_param 
+02e3 204040d1 call mouse_twspi_reset 
+02e4 200003e8 nop 1000 
+02e5 202002e0 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-02e4 20400394 call p_mouse_sensor_poweron 
-02e5 6800c6de fetch 1 ,mem_sensor_id2 
-02e6 c02d02e8 beq p_mx8650 ,p_mouse_mx8650_init_param 
-02e7 202040e0 branch mouse_init_p32xx_id2_judge 
+02e6 20400395 call p_mouse_sensor_poweron 
+02e7 6800c6de fetch 1 ,mem_sensor_id2 
+02e8 c02d02ea beq p_mx8650 ,p_mouse_mx8650_init_param 
+02e9 202040e0 branch mouse_init_p32xx_id2_judge 
 
 p_mouse_mx8650_init_param:
-02e8 7046e007 jam mx8650 ,mem_config_sensor_type 
-02e9 58008006 setarg 0x8006 
-02ea 20406413 call twspi_write 
-02eb 20407ec1 call delay_10ms 
-02ec da604b77 arg mem_sensor_8650_init ,regc 
+02ea 7046e007 jam mx8650 ,mem_config_sensor_type 
+02eb 58008006 setarg 0x8006 
+02ec 20406413 call twspi_write 
+02ed 20407ec1 call delay_10ms 
+02ee da604b77 arg mem_sensor_8650_init ,regc 
 
 p_sensor_wr_seq:
-02ed ea610000 ifetch 2 ,regc 
-02ee d840ffff arg 0xffff ,temp 
-02ef 98467c00 isub temp ,null 
-02f0 20628000 rtn zero 
-02f1 20406413 call twspi_write 
-02f2 20002ee0 nop 12000 
-02f3 1a60a602 increase 2 ,regc 
-02f4 202002ed branch p_sensor_wr_seq 
+02ef ea610000 ifetch 2 ,regc 
+02f0 d840ffff arg 0xffff ,temp 
+02f1 98467c00 isub temp ,null 
+02f2 20628000 rtn zero 
+02f3 20406413 call twspi_write 
+02f4 1a60a602 increase 2 ,regc 
+02f5 202002ef branch p_sensor_wr_seq 
 
 p_mouse_p3065_init_param:
-02f5 20400394 call p_mouse_sensor_poweron 
-02f6 6800c6de fetch 1 ,mem_sensor_id2 
-02f7 c03840e8 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
-02f8 7046e001 jam p3065 ,mem_config_sensor_type 
-02f9 20600000 rtn 
+02f6 20400395 call p_mouse_sensor_poweron 
+02f7 6800c6de fetch 1 ,mem_sensor_id2 
+02f8 c03840e8 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+02f9 7046e001 jam p3065 ,mem_config_sensor_type 
+02fa 20600000 rtn 
 
 p_mouse_setting_config:
-02fa 7011c680 jam zcode_80 ,mem_zcode_temp_param0 
-02fb 2020076a branch p_zcode_entrance 
+02fb 7011c680 jam zcode_80 ,mem_zcode_temp_param0 
+02fc 2020076a branch p_zcode_entrance 
 
 p_flash_ncs_disable:
-02fc 6808cb44 fetcht 1 ,mem_flash_ncs_gpio 
-02fd 20206825 branch gpio_out_inactive 
+02fd 6808cb44 fetcht 1 ,mem_flash_ncs_gpio 
+02fe 20206825 branch gpio_out_inactive 
 
 p_spid_init_flash:
-02fe 70808640 jam 0x40 ,core_spid_ctrl 
-02ff 70808700 jam 0x0 ,core_spid_delay 
-0300 68108081 hfetch 1 ,core_gpio_sel1 
-0301 793ffe00 set0 0 ,pdata 
-0302 793ffe01 set0 1 ,pdata 
-0303 79207e03 set1 3 ,pdata 
-0304 793ffe04 set0 4 ,pdata 
-0305 60108081 hstore 1 ,core_gpio_sel1 
-0306 58000000 setarg 0 
-0307 600201f5 store 4 ,mem_spid_tbuf 
-0308 6810807f hfetch 1 ,core_gpio_pd3 
-0309 793ffe00 set0 0 ,pdata 
-030a 6010807f hstore 1 ,core_gpio_pd3 
-030b 20600000 rtn 
+02ff 70808640 jam 0x40 ,core_spid_ctrl 
+0300 70808700 jam 0x0 ,core_spid_delay 
+0301 68108081 hfetch 1 ,core_gpio_sel1 
+0302 793ffe00 set0 0 ,pdata 
+0303 793ffe01 set0 1 ,pdata 
+0304 79207e03 set1 3 ,pdata 
+0305 793ffe04 set0 4 ,pdata 
+0306 60108081 hstore 1 ,core_gpio_sel1 
+0307 58000000 setarg 0 
+0308 600201f5 store 4 ,mem_spid_tbuf 
+0309 6810807f hfetch 1 ,core_gpio_pd3 
+030a 793ffe00 set0 0 ,pdata 
+030b 6010807f hstore 1 ,core_gpio_pd3 
+030c 20600000 rtn 
 
 p_mouse_load_flash_info_check:
-030c 20400359 call p_flash_release_deep_power_down 
-030d 20404423 call mouse_load_flash_flag 
-030e 68014778 fetch 2 ,mem_store_flag 
-030f d840aa55 arg eeprom_init_flag ,temp 
-0310 98467c00 isub temp ,null 
-0311 2022834a branch p_mouse_load_flash_device_info ,zero 
-0312 60094778 storet 2 ,mem_store_flag 
-0313 244282cb ncall p_mouse_check_select_device_by_switch ,zero 
-0314 2040441c call mouse_ble_init_address 
-0315 6800c6e1 fetch 1 ,mem_config_sensor_motion 
-0316 6000c77a store 1 ,mem_mouse_dpi 
-0317 68024b4b fetch 4 ,mem_mouse_24g_addr_init 
-0318 6002477b store 4 ,mem_mouse_24g_addr 
-0319 60024c5b store 4 ,mem_24g_addr 
+030d 2040035a call p_flash_release_deep_power_down 
+030e 20404423 call mouse_load_flash_flag 
+030f 68014778 fetch 2 ,mem_store_flag 
+0310 d840aa55 arg eeprom_init_flag ,temp 
+0311 98467c00 isub temp ,null 
+0312 2022834b branch p_mouse_load_flash_device_info ,zero 
+0313 60094778 storet 2 ,mem_store_flag 
+0314 244282cb ncall p_mouse_check_select_device_by_switch ,zero 
+0315 2040441c call mouse_ble_init_address 
+0316 6800c6e1 fetch 1 ,mem_config_sensor_motion 
+0317 6000c77a store 1 ,mem_mouse_dpi 
+0318 68024b4b fetch 4 ,mem_mouse_24g_addr_init 
+0319 6002477b store 4 ,mem_mouse_24g_addr 
+031a 60024c5b store 4 ,mem_24g_addr 
 
 p_mouse_store_flash_device_info:
-031a 20400359 call p_flash_release_deep_power_down 
-031b 2040032a call p_flash_erase_sector 
-031c 20400341 call p_mouse_information_flash_parameters 
-031d 20400336 call p_spid_write_flash 
-031e 2040032d call p_wait_flash_done 
+031b 2040035a call p_flash_release_deep_power_down 
+031c 2040032b call p_flash_erase_sector 
+031d 20400342 call p_mouse_information_flash_parameters 
+031e 20400337 call p_spid_write_flash 
+031f 2040032e call p_wait_flash_done 
 
 p_mouse_store_flash_user_data:
-031f 204002fe call p_spid_init_flash 
-0320 d8400007 arg 7 ,temp 
-0321 da204b6f arg mem_mouse_flash_start_temp ,rega 
-0322 da40005f arg mouse_user_data_offect ,regb 
-0323 6801c700 fetch 3 ,mem_flash_base 
-0324 9a40fe00 iadd regb ,pdata 
-0325 20400336 call p_spid_write_flash 
-0326 2040032d call p_wait_flash_done 
-0327 20400351 call p_flash_deep_power_down 
+0320 204002ff call p_spid_init_flash 
+0321 d8400007 arg 7 ,temp 
+0322 da204b6f arg mem_mouse_flash_start_temp ,rega 
+0323 da40005f arg mouse_user_data_offect ,regb 
+0324 6801c700 fetch 3 ,mem_flash_base 
+0325 9a40fe00 iadd regb ,pdata 
+0326 20400337 call p_spid_write_flash 
+0327 2040032e call p_wait_flash_done 
+0328 20400352 call p_flash_deep_power_down 
 
 p_mouse_spi_init:
-0328 70421276 jam 0x76 ,mem_spi_init_clk 
-0329 20203d36 branch mouse_spi_init 
+0329 70421276 jam 0x76 ,mem_spi_init_clk 
+032a 20203d36 branch mouse_spi_init 
 
 p_flash_erase_sector:
-032a 6801c700 fetch 3 ,mem_flash_base 
-032b 6001c232 store 3 ,mem_spi_write_addr 
-032c 2040652a call flash_erase_sector + 2 
+032b 6801c700 fetch 3 ,mem_flash_base 
+032c 6001c232 store 3 ,mem_spi_write_addr 
+032d 2040652a call flash_erase_sector + 2 
 
 p_wait_flash_done:
-032d 580186a0 setarg 100000 
-032e 20402a8f call sleep 
-032f 2040650b call spid_unlock_flash 
-0330 580001fa setarg mem_spid_rbuf 
-0331 6011008c hstore 2 ,core_spid_rxaddr 
-0332 58000005 setarg flash_read_satus 
-0333 204064f3 call spid_read_reg 
-0334 c280032d bbit1 flash_status_wip ,p_wait_flash_done 
-0335 20600000 rtn 
+032e 580186a0 setarg 100000 
+032f 20402a8f call sleep 
+0330 2040650b call spid_unlock_flash 
+0331 580001fa setarg mem_spid_rbuf 
+0332 6011008c hstore 2 ,core_spid_rxaddr 
+0333 58000005 setarg flash_read_satus 
+0334 204064f3 call spid_read_reg 
+0335 c280032e bbit1 flash_status_wip ,p_wait_flash_done 
+0336 20600000 rtn 
 
 p_spid_write_flash:
-0336 1fe22600 copy pdata ,regc 
-0337 1a227e00 copy rega ,pdata 
-0338 1fe0fffc increase -4 ,pdata 
-0339 1fe22400 copy pdata ,regb 
-033a ea420000 ifetch 4 ,regb 
-033b 60024b46 store 4 ,mem_write_flash_head_temp 
-033c 1a627e00 copy regc ,pdata 
-033d 20406552 call spid_write_flash 
-033e 68024b46 fetch 4 ,mem_write_flash_head_temp 
-033f e2420000 istore 4 ,regb 
-0340 20600000 rtn 
+0337 1fe22600 copy pdata ,regc 
+0338 1a227e00 copy rega ,pdata 
+0339 1fe0fffc increase -4 ,pdata 
+033a 1fe22400 copy pdata ,regb 
+033b ea420000 ifetch 4 ,regb 
+033c 60024b46 store 4 ,mem_write_flash_head_temp 
+033d 1a627e00 copy regc ,pdata 
+033e 20406552 call spid_write_flash 
+033f 68024b46 fetch 4 ,mem_write_flash_head_temp 
+0340 e2420000 istore 4 ,regb 
+0341 20600000 rtn 
 
 p_mouse_information_flash_parameters:
-0341 5800477f setarg mem_mouse_information_end 
-0342 d8404720 arg mem_mouse_information_start ,temp 
-0343 98460400 isub temp ,temp 
-0344 6801c700 fetch 3 ,mem_flash_base 
-0345 da204720 arg mem_mouse_information_start ,rega 
-0346 20600000 rtn 
+0342 5800477f setarg mem_mouse_information_end 
+0343 d8404720 arg mem_mouse_information_start ,temp 
+0344 98460400 isub temp ,temp 
+0345 6801c700 fetch 3 ,mem_flash_base 
+0346 da204720 arg mem_mouse_information_start ,rega 
+0347 20600000 rtn 
 
 p_mouse_read_flash:
-0347 20400359 call p_flash_release_deep_power_down 
-0348 20400341 call p_mouse_information_flash_parameters 
-0349 20206562 branch spid_read_flash 
+0348 2040035a call p_flash_release_deep_power_down 
+0349 20400342 call p_mouse_information_flash_parameters 
+034a 20206562 branch spid_read_flash 
 
 p_mouse_load_flash_device_info:
-034a 20400347 call p_mouse_read_flash 
-034b 20400363 call p_mouse_load_flash_user_data 
-034c 204002cb call p_mouse_check_select_device_by_switch 
-034d 2040431a call mouse_select_reconn_device 
-034e 6802477b fetch 4 ,mem_mouse_24g_addr 
-034f 60024c5b store 4 ,mem_24g_addr 
-0350 20600000 rtn 
+034b 20400348 call p_mouse_read_flash 
+034c 20400364 call p_mouse_load_flash_user_data 
+034d 204002cb call p_mouse_check_select_device_by_switch 
+034e 2040431a call mouse_select_reconn_device 
+034f 6802477b fetch 4 ,mem_mouse_24g_addr 
+0350 60024c5b store 4 ,mem_24g_addr 
+0351 20600000 rtn 
 
 p_flash_deep_power_down:
-0351 700aa2b9 jam flash_command_deep_power_down ,mem_temp 
+0352 700aa2b9 jam flash_command_deep_power_down ,mem_temp 
 
 p_spid_write_flash_cmd:
-0352 204002fe call p_spid_init_flash 
-0353 204069ac call delay_nop100 
-0354 2040650b call spid_unlock_flash 
-0355 da204b46 arg mem_write_flash_head_temp ,rega 
-0356 68088aa2 fetcht 1 ,mem_temp 
-0357 20406556 call spid_write_flash_common 
-0358 202069ac branch delay_nop100 
+0353 204002ff call p_spid_init_flash 
+0354 204069ac call delay_nop100 
+0355 2040650b call spid_unlock_flash 
+0356 da204b46 arg mem_write_flash_head_temp ,rega 
+0357 68088aa2 fetcht 1 ,mem_temp 
+0358 20406556 call spid_write_flash_common 
+0359 202069ac branch delay_nop100 
 
 p_flash_release_deep_power_down:
-0359 700aa2ab jam flash_command_release_deep_power_down ,mem_temp 
-035a 20200352 branch p_spid_write_flash_cmd 
+035a 700aa2ab jam flash_command_release_deep_power_down ,mem_temp 
+035b 20200353 branch p_spid_write_flash_cmd 
 
 p_mouse_fast_conn_disable:
-035b 704b745a jam 0x5a ,mem_mouse_fast_conn_flag 
-035c 20600000 rtn 
+035c 704b745a jam 0x5a ,mem_mouse_fast_conn_flag 
+035d 20600000 rtn 
 
 p_mouse_fast_conn_le_switch_adv:
-035d 704b6801 jam 1 ,mem_le_switch_adv_timer 
-035e 704b6701 jam 1 ,mem_le_switch_adv_flag 
+035e 704b6801 jam 1 ,mem_le_switch_adv_timer 
+035f 704b6701 jam 1 ,mem_le_switch_adv_flag 
 
 p_mouse_fast_conn_init:
-035f 704b74ff jam 0xff ,mem_mouse_fast_conn_flag 
-0360 68034d78 fetch 6 ,mem_24g_allpowerful_addr 
-0361 600344a0 store 6 ,mem_le_lap 
-0362 20600000 rtn 
+0360 704b74ff jam 0xff ,mem_mouse_fast_conn_flag 
+0361 68034d78 fetch 6 ,mem_24g_allpowerful_addr 
+0362 600344a0 store 6 ,mem_le_lap 
+0363 20600000 rtn 
 
 p_mouse_load_flash_user_data:
-0363 20400359 call p_flash_release_deep_power_down 
-0364 d8400007 arg 7 ,temp 
-0365 da204b6f arg mem_mouse_flash_start_temp ,rega 
-0366 da40005f arg mouse_user_data_offect ,regb 
-0367 6801c700 fetch 3 ,mem_flash_base 
-0368 9a40fe00 iadd regb ,pdata 
-0369 20206562 branch spid_read_flash 
+0364 2040035a call p_flash_release_deep_power_down 
+0365 d8400007 arg 7 ,temp 
+0366 da204b6f arg mem_mouse_flash_start_temp ,rega 
+0367 da40005f arg mouse_user_data_offect ,regb 
+0368 6801c700 fetch 3 ,mem_flash_base 
+0369 9a40fe00 iadd regb ,pdata 
+036a 20206562 branch spid_read_flash 
 
 p_mouse_connect_24g_mode:
-036a 2040052f call p_mouse_mode_24g_device_multi_led_on 
+036b 2040052f call p_mouse_mode_24g_device_multi_led_on 
 
 p_mouse_start_24g_mode:
-036b 6800c241 fetch 1 ,mem_power_on_flag 
-036c c28101f3 bbit1 2 ,p_g24_start_24g_mode 
-036d 68024b4b fetch 4 ,mem_mouse_24g_addr_init 
-036e 60024c5b store 4 ,mem_24g_addr 
-036f 2040031a call p_mouse_store_flash_device_info 
-0370 202001f5 branch p_g24_auto_pair_start 
+036c 6800c241 fetch 1 ,mem_power_on_flag 
+036d c28101f3 bbit1 2 ,p_g24_start_24g_mode 
+036e 68024b4b fetch 4 ,mem_mouse_24g_addr_init 
+036f 60024c5b store 4 ,mem_24g_addr 
+0370 2040031b call p_mouse_store_flash_device_info 
+0371 202001f5 branch p_g24_auto_pair_start 
 
 p_mouse_g24_package_data:
-0371 20404401 call mouse_g24_package_data 
-0372 6801469f fetch 2 ,mem_mouse_z 
-0373 207a0000 rtn blank 
+0372 20404401 call mouse_g24_package_data 
+0373 6801469f fetch 2 ,mem_mouse_z 
+0374 207a0000 rtn blank 
 
 p_g24_transmit_by_interrupt_enable:
-0374 704d7301 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
-0375 58000000 setarg 0 
-0376 60014d74 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-0377 20600000 rtn 
+0375 704d7301 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
+0376 58000000 setarg 0 
+0377 60014d74 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+0378 20600000 rtn 
 
 p_mouse_le_txbuff_save:
-0378 d8c01800 arg mem_le_tx_buffer0 ,contr 
-0379 d8a0480a arg mem_le_tx_buffer0_omemalloc ,contw 
-037a 20400380 call p_mouse_le_txbuff_copy 
-037b d8c01900 arg mem_le_tx_buffer1 ,contr 
-037c 20400380 call p_mouse_le_txbuff_copy 
-037d d8c01a00 arg mem_le_tx_buffer2 ,contr 
-037e 20400380 call p_mouse_le_txbuff_copy 
-037f d8c01b00 arg mem_le_tx_buffer3 ,contr 
+0379 d8c01800 arg mem_le_tx_buffer0 ,contr 
+037a d8a0480a arg mem_le_tx_buffer0_omemalloc ,contw 
+037b 20400381 call p_mouse_le_txbuff_copy 
+037c d8c01900 arg mem_le_tx_buffer1 ,contr 
+037d 20400381 call p_mouse_le_txbuff_copy 
+037e d8c01a00 arg mem_le_tx_buffer2 ,contr 
+037f 20400381 call p_mouse_le_txbuff_copy 
+0380 d8c01b00 arg mem_le_tx_buffer3 ,contr 
 
 p_mouse_le_txbuff_copy:
-0380 df20001b arg 27 ,loopcnt 
-0381 20207f01 branch memcpy 
+0381 df20001b arg 27 ,loopcnt 
+0382 20207f01 branch memcpy 
 
 p_mouse_le_txbuff_load:
-0382 d8c0480a arg mem_le_tx_buffer0_omemalloc ,contr 
-0383 d8a01800 arg mem_le_tx_buffer0 ,contw 
-0384 20400380 call p_mouse_le_txbuff_copy 
-0385 d8a01900 arg mem_le_tx_buffer1 ,contw 
-0386 20400380 call p_mouse_le_txbuff_copy 
-0387 d8a01a00 arg mem_le_tx_buffer2 ,contw 
-0388 20400380 call p_mouse_le_txbuff_copy 
-0389 d8a01b00 arg mem_le_tx_buffer3 ,contw 
-038a 20200380 branch p_mouse_le_txbuff_copy 
+0383 d8c0480a arg mem_le_tx_buffer0_omemalloc ,contr 
+0384 d8a01800 arg mem_le_tx_buffer0 ,contw 
+0385 20400381 call p_mouse_le_txbuff_copy 
+0386 d8a01900 arg mem_le_tx_buffer1 ,contw 
+0387 20400381 call p_mouse_le_txbuff_copy 
+0388 d8a01a00 arg mem_le_tx_buffer2 ,contw 
+0389 20400381 call p_mouse_le_txbuff_copy 
+038a d8a01b00 arg mem_le_tx_buffer3 ,contw 
+038b 20200381 branch p_mouse_le_txbuff_copy 
 
 p_mouse_le_current_mult_update:
-038b 70417200 jam 0 ,mem_lpm_mult 
-038c 704b421e jam 30 ,mem_mouse_le_current_mult_timer 
-038d 20600000 rtn 
+038c 70417200 jam 0 ,mem_lpm_mult 
+038d 704b421e jam 30 ,mem_mouse_le_current_mult_timer 
+038e 20600000 rtn 
 
 p_mouse_data_xy_release:
-038e 6800cb41 fetch 1 ,mem_mouse_long_mult_flag 
-038f c1808000 rtnne 1 
-0390 58000000 setarg 0 
-0391 6000cb41 store 1 ,mem_mouse_long_mult_flag 
-0392 6002469b store 4 ,mem_mouse_x 
-0393 202002db branch p_mouse_init_sensor_reset 
+038f 6800cb41 fetch 1 ,mem_mouse_long_mult_flag 
+0390 c1808000 rtnne 1 
+0391 58000000 setarg 0 
+0392 6000cb41 store 1 ,mem_mouse_long_mult_flag 
+0393 6002469b store 4 ,mem_mouse_x 
+0394 202002db branch p_mouse_init_sensor_reset 
 
 p_mouse_sensor_poweron:
-0394 20400328 call p_mouse_spi_init 
-0395 da604b9f arg mem_sensor_poweron_init ,regc 
-0396 204002ed call p_sensor_wr_seq 
+0395 20400329 call p_mouse_spi_init 
+0396 da604b9f arg mem_sensor_poweron_init ,regc 
+0397 204002ef call p_sensor_wr_seq 
+0398 20402bfa call delays_5ms 
 
 p_mouse_dpi_config:
-0397 6800c77a fetch 1 ,mem_mouse_dpi 
-0398 c0ff8534 bne 0xff ,p_mouse_seting_dpi 
+0399 6800c77a fetch 1 ,mem_mouse_dpi 
+039a c0ff8534 bne 0xff ,p_mouse_seting_dpi 
 
 p_mouse_dpi_config_default:
-0399 6800c6e1 fetch 1 ,mem_config_sensor_motion 
-039a 6000c77a store 1 ,mem_mouse_dpi 
-039b 20200534 branch p_mouse_seting_dpi 
+039b 6800c6e1 fetch 1 ,mem_config_sensor_motion 
+039c 6000c77a store 1 ,mem_mouse_dpi 
+039d 20200534 branch p_mouse_seting_dpi 
 
 p_mouse_le:
-039c 20405892 call le_fifo_check_nearly_full 
-039d 247a0000 nrtn blank 
-039e 6800cb74 fetch 1 ,mem_mouse_fast_conn_flag 
-039f c07f83a3 beq 0xff ,p_mouse_le_next 
-03a0 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
-03a1 1fe17e03 and pdata ,0x03 ,pdata 
-03a2 c1818000 rtnne 0x03 
+039e 20405892 call le_fifo_check_nearly_full 
+039f 247a0000 nrtn blank 
+03a0 6800cb74 fetch 1 ,mem_mouse_fast_conn_flag 
+03a1 c07f83a5 beq 0xff ,p_mouse_le_next 
+03a2 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
+03a3 1fe17e03 and pdata ,0x03 ,pdata 
+03a4 c1818000 rtnne 0x03 
 
 p_mouse_le_next:
-03a3 6800c79e fetch 1 ,mem_mouse_clear_sensor_data_flag 
-03a4 205a02d9 call p_mouse_clear_sensor_data ,blank 
-03a5 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
-03a6 c282c179 bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
-03a7 20403f97 call mouse_motion 
-03a8 24740000 nrtn user 
-03a9 2040038b call p_mouse_le_current_mult_update 
-03aa 2040038e call p_mouse_data_xy_release 
-03ab 204003c6 call p_mouse_wheel_trigger 
+03a5 6800c79e fetch 1 ,mem_mouse_clear_sensor_data_flag 
+03a6 205a02d9 call p_mouse_clear_sensor_data ,blank 
+03a7 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
+03a8 c282c179 bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
+03a9 20403f97 call mouse_motion 
+03aa 24740000 nrtn user 
+03ab 2040038c call p_mouse_le_current_mult_update 
+03ac 2040038f call p_mouse_data_xy_release 
+03ad 204003c8 call p_mouse_wheel_trigger 
 
 p_mouse_data_push:
-03ac da20469a arg mem_mouse_key ,rega 
-03ad 20407e3d call queue_push 
-03ae 205403b5 call p_mouse_queue_increase ,user 
-03af 20600000 rtn 
+03ae da20469a arg mem_mouse_key ,rega 
+03af 20407e3d call queue_push 
+03b0 205403b7 call p_mouse_queue_increase ,user 
+03b1 20600000 rtn 
 
 p_mouse_data_init:
-03b0 7047a207 jam 7 ,mem_mouse_data_queue 
-03b1 7047a304 jam 4 ,mem_mouse_data_queue + 1 
-03b2 580047a2 setarg mem_mouse_data_queue 
-03b3 60014218 store 2 ,mem_queue_ptr 
-03b4 20207e38 branch queue_init 
+03b2 7047a207 jam 7 ,mem_mouse_data_queue 
+03b3 7047a304 jam 4 ,mem_mouse_data_queue + 1 
+03b4 580047a2 setarg mem_mouse_data_queue 
+03b5 60014218 store 2 ,mem_queue_ptr 
+03b6 20207e38 branch queue_init 
 
 p_mouse_queue_increase:
-03b5 6800c7c3 fetch 1 ,mem_mouse_data_queue_num 
-03b6 1fe0fe01 increase 1 ,pdata 
-03b7 6000c7c3 store 1 ,mem_mouse_data_queue_num 
-03b8 20600000 rtn 
+03b7 6800c7c3 fetch 1 ,mem_mouse_data_queue_num 
+03b8 1fe0fe01 increase 1 ,pdata 
+03b9 6000c7c3 store 1 ,mem_mouse_data_queue_num 
+03ba 20600000 rtn 
 
 p_mouse_data_pull:
-03b9 da20469a arg mem_mouse_key ,rega 
-03ba 20407e54 call queue_pop 
-03bb 203403bd branch p_mouse_fill_data_le ,user 
-03bc 20600000 rtn 
+03bb da20469a arg mem_mouse_key ,rega 
+03bc 20407e54 call queue_pop 
+03bd 203403bf branch p_mouse_fill_data_le ,user 
+03be 20600000 rtn 
 
 p_mouse_fill_data_le:
-03bd 20405652 call le_clear_md 
-03be 6800c7c3 fetch 1 ,mem_mouse_data_queue_num 
-03bf 1fe67c01 sub pdata ,1 ,null 
-03c0 24415650 ncall le_set_md ,positive 
-03c1 6800c7c3 fetch 1 ,mem_mouse_data_queue_num 
-03c2 207a0000 rtn blank 
-03c3 1fe0ffff increase -1 ,pdata 
-03c4 6000c7c3 store 1 ,mem_mouse_data_queue_num 
-03c5 20203f90 branch mouse_fill_data_le 
+03bf 20405652 call le_clear_md 
+03c0 6800c7c3 fetch 1 ,mem_mouse_data_queue_num 
+03c1 1fe67c01 sub pdata ,1 ,null 
+03c2 24415650 ncall le_set_md ,positive 
+03c3 6800c7c3 fetch 1 ,mem_mouse_data_queue_num 
+03c4 207a0000 rtn blank 
+03c5 1fe0ffff increase -1 ,pdata 
+03c6 6000c7c3 store 1 ,mem_mouse_data_queue_num 
+03c7 20203f90 branch mouse_fill_data_le 
 
 p_mouse_wheel_trigger:
-03c6 6801469f fetch 2 ,mem_mouse_z 
-03c7 207a0000 rtn blank 
-03c8 70480601 jam 1 ,mem_mouse_wheel_trigger 
-03c9 7048070a jam 10 ,mem_mouse_wheel_trigger_timer 
-03ca 20600000 rtn 
+03c8 6801469f fetch 2 ,mem_mouse_z 
+03c9 207a0000 rtn blank 
+03ca 70480601 jam 1 ,mem_mouse_wheel_trigger 
+03cb 7048070a jam 10 ,mem_mouse_wheel_trigger_timer 
+03cc 20600000 rtn 
 
 p_mouse_bt:
-03cb 20770000 rtn attempt 
-03cc 6800c1e2 fetch 1 ,mem_app_handshake_flag 
-03cd 207a0000 rtn blank 
-03ce 20405271 call l2cap_malloc_is_fifo_nearly_full 
-03cf 247a0000 nrtn blank 
-03d0 6800c79e fetch 1 ,mem_mouse_clear_sensor_data_flag 
-03d1 205a02d9 call p_mouse_clear_sensor_data ,blank 
-03d2 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
-03d3 c282bf8a bbit1 mouse_bt_discovery_button_down_flag ,mouse_send_empty_data 
-03d4 c284bf8a bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_send_empty_data 
-03d5 20403f97 call mouse_motion 
-03d6 24740000 nrtn user 
-03d7 2040038b call p_mouse_le_current_mult_update 
-03d8 2040038e call p_mouse_data_xy_release 
-03d9 204003c6 call p_mouse_wheel_trigger 
-03da 6800cb03 fetch 1 ,mem_mouse_bt_boot_mode 
-03db c00083df beq 1 ,p_mouse_send_data_boot_mode 
-03dc 6800cb0a fetch 1 ,mem_mouse_bt_send_first_package_flag 
-03dd 207a0000 rtn blank 
-03de 20203f81 branch mouse_send_data 
+03cd 20770000 rtn attempt 
+03ce 6800c1e2 fetch 1 ,mem_app_handshake_flag 
+03cf 207a0000 rtn blank 
+03d0 20405271 call l2cap_malloc_is_fifo_nearly_full 
+03d1 247a0000 nrtn blank 
+03d2 6800c79e fetch 1 ,mem_mouse_clear_sensor_data_flag 
+03d3 205a02d9 call p_mouse_clear_sensor_data ,blank 
+03d4 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
+03d5 c282bf8a bbit1 mouse_bt_discovery_button_down_flag ,mouse_send_empty_data 
+03d6 c284bf8a bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_send_empty_data 
+03d7 20403f97 call mouse_motion 
+03d8 24740000 nrtn user 
+03d9 2040038c call p_mouse_le_current_mult_update 
+03da 2040038f call p_mouse_data_xy_release 
+03db 204003c8 call p_mouse_wheel_trigger 
+03dc 6800cb03 fetch 1 ,mem_mouse_bt_boot_mode 
+03dd c00083e1 beq 1 ,p_mouse_send_data_boot_mode 
+03de 6800cb0a fetch 1 ,mem_mouse_bt_send_first_package_flag 
+03df 207a0000 rtn blank 
+03e0 20203f81 branch mouse_send_data 
 
 p_mouse_send_data_boot_mode:
-03df 6800c69a fetch 1 ,mem_mouse_key 
-03e0 6000cb04 store 1 ,mem_mouse_bt_boot_data 
-03e1 6800c69b fetch 1 ,mem_mouse_x 
-03e2 e0a08000 istore 1 ,contw 
-03e3 6800c69d fetch 1 ,mem_mouse_y 
+03e1 6800c69a fetch 1 ,mem_mouse_key 
+03e2 6000cb04 store 1 ,mem_mouse_bt_boot_data 
+03e3 6800c69b fetch 1 ,mem_mouse_x 
 03e4 e0a08000 istore 1 ,contw 
-03e5 6801469f fetch 2 ,mem_mouse_z 
-03e6 e0a10000 istore 2 ,contw 
-03e7 da200007 arg 7 ,rega 
-03e8 20404d63 call hid_malloc_tx_buff 
-03e9 6801424e fetch 2 ,mem_hid_int_remote_cid 
-03ea e0a10000 istore 2 ,contw 
-03eb 580002a1 setarg 0x02a1 
+03e5 6800c69d fetch 1 ,mem_mouse_y 
+03e6 e0a08000 istore 1 ,contw 
+03e7 6801469f fetch 2 ,mem_mouse_z 
+03e8 e0a10000 istore 2 ,contw 
+03e9 da200007 arg 7 ,rega 
+03ea 20404d63 call hid_malloc_tx_buff 
+03eb 6801424e fetch 2 ,mem_hid_int_remote_cid 
 03ec e0a10000 istore 2 ,contw 
-03ed 6802cb04 fetch 5 ,mem_mouse_bt_boot_data 
-03ee e0a28000 istore 5 ,contw 
-03ef 20600000 rtn 
+03ed 580002a1 setarg 0x02a1 
+03ee e0a10000 istore 2 ,contw 
+03ef 6802cb04 fetch 5 ,mem_mouse_bt_boot_data 
+03f0 e0a28000 istore 5 ,contw 
+03f1 20600000 rtn 
 
 p_mouse_idle:
-03f0 20407e34 call ui_check_paring_button 
-03f1 204003f3 call p_mouse_dpi_check 
-03f2 20203ee0 branch mouse_wheel_check 
+03f2 20407e34 call ui_check_paring_button 
+03f3 204003f5 call p_mouse_dpi_check 
+03f4 20203ee0 branch mouse_wheel_check 
 
 p_mouse_dpi_check:
-03f3 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-03f4 20400577 call p_gpio_set_input_pd 
 03f5 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-03f6 2040681d call gpio_get_bit 
-03f7 20208401 branch p_mouse_dpi_up ,true 
-03f8 20400572 call p_gpio_set_input_pu 
+03f6 20400577 call p_gpio_set_input_pd 
+03f7 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
+03f8 2040681d call gpio_get_bit 
+03f9 20208403 branch p_mouse_dpi_up ,true 
+03fa 20400572 call p_gpio_set_input_pu 
 
 p_mouse_dpi_down:
-03f9 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
-03fa c1000000 rtneq dpi_button_state_down 
-03fb 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
-03fc 6800c77a fetch 1 ,mem_mouse_dpi 
-03fd 1fe0fe01 increase 1 ,pdata 
-03fe 1fe17e03 and pdata ,0x03 ,pdata 
-03ff 6000c77a store 1 ,mem_mouse_dpi 
-0400 20203d7e branch mouse_seting_dpi 
+03fb 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
+03fc c1000000 rtneq dpi_button_state_down 
+03fd 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+03fe 6800c77a fetch 1 ,mem_mouse_dpi 
+03ff 1fe0fe01 increase 1 ,pdata 
+0400 1fe17e03 and pdata ,0x03 ,pdata 
+0401 6000c77a store 1 ,mem_mouse_dpi 
+0402 20203d7e branch mouse_seting_dpi 
 
 p_mouse_dpi_up:
-0401 20400572 call p_gpio_set_input_pu 
-0402 20203d62 branch mouse_dpi_up 
+0403 20400572 call p_gpio_set_input_pu 
+0404 20203d62 branch mouse_dpi_up 
 
 p_mouse_priority_bb_event:
-0403 1a627e00 copy regc ,pdata 
-0404 c00a0414 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-0405 c00a8423 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-0406 c0148427 beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
-0407 c0190429 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0408 c020042b beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
-0409 c002042d beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-040a c009842d beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_timeout 
-040b c00cb3df beq bt_evt_switch_not_accept ,app_bt_role_switch 
-040c c0108431 beq bt_evt_sniff_not_accept ,p_mouse_sniff_not_accept 
-040d c0008433 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-040e c001043b beq bt_evt_bb_disconnected ,p_mouse_bb_event_disconnected 
-040f c015843f beq bt_evt_switch_success_master ,p_mouse_enter_sniff_check 
-0410 c01c8441 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-0411 c01d0444 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-0412 c01e0447 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0413 2020417d branch mouse_priority_bb_event + 1 
+0405 1a627e00 copy regc ,pdata 
+0406 c00a0416 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+0407 c00a8424 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+0408 c0148428 beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
+0409 c019042a beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+040a c020042c beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+040b c002042e beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+040c c009842e beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_timeout 
+040d c00cb3df beq bt_evt_switch_not_accept ,app_bt_role_switch 
+040e c0108432 beq bt_evt_sniff_not_accept ,p_mouse_sniff_not_accept 
+040f c0008434 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0410 c001043b beq bt_evt_bb_disconnected ,p_mouse_bb_event_disconnected 
+0411 c015843f beq bt_evt_switch_success_master ,p_mouse_enter_sniff_check 
+0412 c01c8441 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+0413 c01d0444 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0414 c01e0447 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0415 2020417d branch mouse_priority_bb_event + 1 
 
 p_mouse_le_bb_event_connected:
-0414 204002db call p_mouse_init_sensor_reset 
-0415 58000000 setarg 0 
-0416 6001cb67 store 3 ,mem_le_switch_adv_flag 
-0417 68034b4b fetch 6 ,mem_mouse_24g_addr_init 
-0418 680b4722 fetcht 6 ,mem_device1_addr 
-0419 98467c00 isub temp ,null 
-041a 2442835b ncall p_mouse_fast_conn_disable ,zero 
-041b 20403410 call app_ble_store_reconn_info 
-041c 704b6e01 jam 1 ,mem_mouse_le_bb_connected_flag 
-041d 6800c7a1 fetch 1 ,mem_mouse_le_reconnect_flag 
-041e 243a0420 nbranch p_mouse_le_bb_event_connected_next ,blank 
-041f 704b6c14 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+0416 58000000 setarg 0 
+0417 6001cb67 store 3 ,mem_le_switch_adv_flag 
+0418 68034b4b fetch 6 ,mem_mouse_24g_addr_init 
+0419 680b4722 fetcht 6 ,mem_device1_addr 
+041a 98467c00 isub temp ,null 
+041b 2442835c ncall p_mouse_fast_conn_disable ,zero 
+041c 20403410 call app_ble_store_reconn_info 
+041d 704b6e01 jam 1 ,mem_mouse_le_bb_connected_flag 
+041e 6800c7a1 fetch 1 ,mem_mouse_le_reconnect_flag 
+041f 243a0421 nbranch p_mouse_le_bb_event_connected_next ,blank 
+0420 704b6c14 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
 
 p_mouse_le_bb_event_connected_next:
-0420 204004e6 call p_mouse_null_enter_hibernate_disable 
-0421 204003b0 call p_mouse_data_init 
-0422 202041c3 branch mouse_le_bb_event_connected 
+0421 204004e6 call p_mouse_null_enter_hibernate_disable 
+0422 204003b2 call p_mouse_data_init 
+0423 202041c3 branch mouse_le_bb_event_connected 
 
 p_mouse_le_bb_disconnected:
-0423 2040044d call p_mouse_sensor_powerdown_check 
-0424 2040031a call p_mouse_store_flash_device_info 
-0425 7011c6a2 jam zcode_a2 ,mem_zcode_temp_param0 
-0426 2020076a branch p_zcode_entrance 
+0424 2040044d call p_mouse_sensor_powerdown_check 
+0425 2040031b call p_mouse_store_flash_device_info 
+0426 7011c6a2 jam zcode_a2 ,mem_zcode_temp_param0 
+0427 2020076a branch p_zcode_entrance 
 
 p_mouse_le_enc_info:
 
 p_app_updata_le_param:
-0427 700a9912 jam bt_cmd_le_update_conn ,mem_fifo_temp 
-0428 20207d8f branch ui_ipc_send_cmd 
+0428 700a9912 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+0429 20207d8f branch ui_ipc_send_cmd 
 
 p_mouse_le_ll_start_encryt:
-0429 7011c6b3 jam zcode_b3 ,mem_zcode_temp_param0 
-042a 2020076a branch p_zcode_entrance 
+042a 7011c6b3 jam zcode_b3 ,mem_zcode_temp_param0 
+042b 2020076a branch p_zcode_entrance 
 
 p_mouse_le_conn_param_update_rsp_recieved:
-042b 7011c6a1 jam zcode_a1 ,mem_zcode_temp_param0 
-042c 2020076a branch p_zcode_entrance 
+042c 7011c6a1 jam zcode_a1 ,mem_zcode_temp_param0 
+042d 2020076a branch p_zcode_entrance 
 
 p_mouse_bb_event_reconn_timeout:
 
 p_mouse_bb_event_reconn_failed:
-042d 7011c6a3 jam zcode_a3 ,mem_zcode_temp_param0 
-042e 2020076a branch p_zcode_entrance 
+042e 7011c6a3 jam zcode_a3 ,mem_zcode_temp_param0 
+042f 2020076a branch p_zcode_entrance 
 
 p_mouse_irtual_cable_unplug:
-042f 7011c670 jam zcode_70 ,mem_zcode_temp_param0 
-0430 2020076a branch p_zcode_entrance 
+0430 7011c670 jam zcode_70 ,mem_zcode_temp_param0 
+0431 2020076a branch p_zcode_entrance 
 
 p_mouse_sniff_not_accept:
-0431 7011c6b1 jam zcode_b1 ,mem_zcode_temp_param0 
-0432 2020076a branch p_zcode_entrance 
+0432 7011c6b1 jam zcode_b1 ,mem_zcode_temp_param0 
+0433 2020076a branch p_zcode_entrance 
 
 p_mouse_bb_event_connected:
-0433 2040048c call p_mouse_store_eeprom_enable 
-0434 204002db call p_mouse_init_sensor_reset 
+0434 2040048c call p_mouse_store_eeprom_enable 
 0435 58000000 setarg 0 
 0436 6001cb67 store 3 ,mem_le_switch_adv_flag 
 0437 204004e6 call p_mouse_null_enter_hibernate_disable 
@@ -1450,7 +1450,7 @@
 
 p_mouse_bb_event_disconnected:
 043b 2040044d call p_mouse_sensor_powerdown_check 
-043c 2040031a call p_mouse_store_flash_device_info 
+043c 2040031b call p_mouse_store_flash_device_info 
 043d 7011c6b4 jam zcode_b4 ,mem_zcode_temp_param0 
 043e 2020076a branch p_zcode_entrance 
 
@@ -1484,7 +1484,7 @@
 044f 704afe00 jam 0 ,mem_mouse_init_sensor_reset_flag 
 
 p_mouse_sensor_powerdown:
-0450 204002dc call p_mouse_init_sunt 
+0450 204002de call p_mouse_init_sunt 
 0451 58000006 setarg 0x06 
 0452 20406414 call twspi_read 
 0453 1fe1fe08 or pdata ,0x08 ,pdata 
@@ -1576,7 +1576,7 @@
 048f 70438f00 jam 0 ,mem_le_scan_data_len 
 0490 d8e00007 arg mouse_store_eeprom_flag ,queue 
 0491 204043d2 call mouse_disable_function_flag 
-0492 2020035f branch p_mouse_fast_conn_init 
+0492 20200360 branch p_mouse_fast_conn_init 
 
 p_mouse_g24_long_sleep_param_update_timer:
 0493 da604b43 arg mem_24g_long_sleep_param_update_timer ,regc 
@@ -2029,7 +2029,7 @@
 
 p_in_le_tx_4:
 05b0 20405892 call le_fifo_check_nearly_full 
-05b1 205a03b9 call p_mouse_data_pull ,blank 
+05b1 205a03bb call p_mouse_data_pull ,blank 
 05b2 20205622 branch le_prepare_tx + 4 
 
 p_le_check_tx_retransmit_setmd:
@@ -2483,7 +2483,7 @@
 
 p_mouse_unplug_clean_bdaddr:
 06f4 204042fb call mouse_before_store_reconn_info 
-06f5 2020031a branch p_mouse_store_flash_device_info 
+06f5 2020031b branch p_mouse_store_flash_device_info 
 
 p_check_51cmd_ble_update_connect_param:
 06f6 20405890 call le_fifo_check_full 
@@ -2669,7 +2669,7 @@
 0776 9840fe00 iadd temp ,pdata 
 0777 1fe0fffb increase -5 ,pdata 
 0778 6001cb58 store 3 ,mem_flash_address 
-0779 20400359 call p_flash_release_deep_power_down 
+0779 2040035a call p_flash_release_deep_power_down 
 
 p_zcode_read_loop:
 077a 6801cb58 fetch 3 ,mem_flash_address 
@@ -2680,7 +2680,7 @@
 077f 680a4b5b fetcht 4 ,mem_zcode_head 
 0780 98467c00 isub temp ,null 
 0781 2422877a nbranch p_zcode_read_loop ,zero 
-0782 20400328 call p_mouse_spi_init 
+0782 20400329 call p_mouse_spi_init 
 0783 58001f00 setarg mem_zcode_buff 
 0784 60014199 store 2 ,mem_patch_ptr 
 0785 70419b40 jam zcode_code_size ,mem_patch_len 
@@ -6789,6 +6789,8 @@
 2bf7 20407f91 call ceiling 
 2bf8 6000c178 store 1 ,mem_lpm_xtalcnt 
 2bf9 20007530 nop 30000 
+
+delays_5ms:
 2bfa 20007530 nop 30000 
 2bfb 20007530 nop 30000 
 2bfc 20600000 rtn 
@@ -35552,7 +35554,7 @@
 
 z_hid_rx_process_hid_control:
 1003a 18427e00  copy temp ,pdata
-1003b c002842f  beq hid_control_p_virtualcableunplug ,p_mouse_irtual_cable_unplug
+1003b c0028430  beq hid_control_p_virtualcableunplug ,p_mouse_irtual_cable_unplug
 1003c 20204d41  branch hid_rx_process_hid_control + 2
 org 0x20001
 
@@ -35706,7 +35708,7 @@
 4000a 2040001c  call z_mouse_le_addr_update
 
 z_mouse_start_discovery_norandom:
-4000b 2040035b  call p_mouse_fast_conn_disable
+4000b 2040035c  call p_mouse_fast_conn_disable
 4000c 20403418  call app_lpm_mult_disable
 4000d 68014687  fetch 2 ,mem_discovery_timeout
 4000e 600146ac  store 2 ,mem_mouse_discovery_timer
@@ -35725,12 +35727,12 @@
 4001b 202004fe  branch p_mouse_discovery_multi_led_blink
 
 z_mouse_le_addr_update:
-4001c 20400363  call p_mouse_load_flash_user_data
+4001c 20400364  call p_mouse_load_flash_user_data
 4001d 68094b6f  fetcht 2 ,mem_random_addr_increase_count
 4001e 18408401  increase 1 ,temp
 4001f 60094b6f  storet 2 ,mem_random_addr_increase_count
 40020 600944a1  storet 2 ,mem_le_lap + 1
-40021 2040031f  call p_mouse_store_flash_user_data
+40021 20400320  call p_mouse_store_flash_user_data
 40022 180a7e00  random pdata
 40023 6000c4a0  store 1 ,mem_le_lap
 40024 20600000  rtn
@@ -35834,7 +35836,7 @@
 60014 68024c5b  fetch 4 ,mem_24g_addr
 60015 6002477b  store 4 ,mem_mouse_24g_addr
 60016 20404366  call mouse_cheak_select_24gdevice
-60017 2020031a  branch p_mouse_store_flash_device_info
+60017 2020031b  branch p_mouse_store_flash_device_info
 
 z_g24_auto_pair_timeout_clear:
 60018 58000000  setarg 0
@@ -35856,7 +35858,7 @@
 60024 704b4100  jam 0 ,mem_mouse_long_mult_flag
 60025 20402f20  call g24_app_tx_attempt_success
 60026 204001a8  call p_g24_txbuf_clear
-60027 20200374  branch p_g24_transmit_by_interrupt_enable
+60027 20200375  branch p_g24_transmit_by_interrupt_enable
 
 z_g24_store_dongle_addr:
 60028 68024c13  fetch 4 ,mem_24g_rxpayload + 2
@@ -35913,7 +35915,7 @@
 70020 704b4100  jam 0 ,mem_mouse_long_mult_flag
 70021 20402f20  call g24_app_tx_attempt_success
 70022 204001a8  call p_g24_txbuf_clear
-70023 20200374  branch p_g24_transmit_by_interrupt_enable
+70023 20200375  branch p_g24_transmit_by_interrupt_enable
 
 z7_g24_store_dongle_addr:
 70024 68024c13  fetch 4 ,mem_24g_rxpayload + 2
@@ -35966,7 +35968,7 @@
 80006 70018533  jam rec_3_mode ,mem_record_bt_mode
 80007 704b74ff  jam 0xff ,mem_mouse_fast_conn_flag
 80008 204042fb  call mouse_before_store_reconn_info
-80009 2020031a  branch p_mouse_store_flash_device_info
+80009 2020031b  branch p_mouse_store_flash_device_info
 
 z_g24_search_dongle:
 8000a 6800cb41  fetch 1 ,mem_mouse_long_mult_flag
@@ -36034,23 +36036,23 @@
 9000d 6801421d  fetch 2 ,mem_0_5_adc_io_data
 9000e 60014b6f  store 2 ,mem_random_addr_increase_count
 9000f 20403e54  call mouse_adc_init
-90010 2040030c  call p_mouse_load_flash_info_check
+90010 2040030d  call p_mouse_load_flash_info_check
 90011 6800c720  fetch 1 ,mem_device_flag
 90012 c1010000  rtneq mode_24g_device
 90013 68034b4b  fetch 6 ,mem_mouse_24g_addr_init
 90014 680b4722  fetcht 6 ,mem_device1_addr
 90015 98467c00  isub temp ,null
-90016 2422835b  nbranch p_mouse_fast_conn_disable ,zero
+90016 2422835c  nbranch p_mouse_fast_conn_disable ,zero
 90017 68094b6f  fetcht 2 ,mem_random_addr_increase_count
 90018 18408401  increase 1 ,temp
 90019 60094b6f  storet 2 ,mem_random_addr_increase_count
 9001a 600944a1  storet 2 ,mem_le_lap + 1
-9001b 2040031f  call p_mouse_store_flash_user_data
+9001b 20400320  call p_mouse_store_flash_user_data
 9001c 180a7e00  random pdata
 9001d 6000c4a0  store 1 ,mem_le_lap
 9001e 680344a0  fetch 6 ,mem_le_lap
 9001f 60034b61  store 6 ,mem_le_normal_lap
-90020 2020035d  branch p_mouse_fast_conn_le_switch_adv
+90020 2020035e  branch p_mouse_fast_conn_le_switch_adv
 90021 20600000  rtn
 
 z_mouse_bt_sdp_update:
@@ -36168,7 +36170,7 @@
 b000c 58000009  setarg le_interval_11_25ms
 b000d 60014496  store 2 ,mem_le_interval_min
 b000e 60014498  store 2 ,mem_le_interval_min + 2
-b000f 20400427  call p_app_updata_le_param
+b000f 20400428  call p_app_updata_le_param
 b0010 7047c401  jam le_lpm_disable ,mem_mouse_le_conn_param_reject
 b0011 20600000  rtn
 
@@ -36194,7 +36196,7 @@
 b001e 60014498  store 2 ,mem_le_interval_min + 2
 b001f 7047c400  jam le_lpm_enable ,mem_mouse_le_conn_param_reject
 b0020 70479e00  jam 0 ,mem_mouse_clear_sensor_data_flag
-b0021 204003b0  call p_mouse_data_init
+b0021 204003b2  call p_mouse_data_init
 b0022 20405816  call le_clr_config_more_data
 b0023 202041d9  branch mouse_bb_disconnected
 
@@ -36205,13 +36207,13 @@
 b0027 20402c21  call lpm_write_ctrl
 b0028 204074bd  call disable_authrom
 b0029 20404482  call mouse_devce_led_off
-b002a 2040031a  call p_mouse_store_flash_device_info
+b002a 2040031b  call p_mouse_store_flash_device_info
 b002b 20403e9f  call mouse_before_hibernate_wheel_gpio_set
 b002c 204000ee  call p_mouse_setgpio_hibernate
 b002d 6800c720  fetch 1 ,mem_device_flag
 b002e 1fe67c02  sub pdata ,mode_24g_device ,null
 b002f 20428039  call z_mouse_select_device_button_gpio_set_suspend ,zero
-b0030 20400351  call p_flash_deep_power_down
+b0030 20400352  call p_flash_deep_power_down
 b0031 68108081  hfetch 1 ,core_gpio_sel1
 b0032 1fe17ef7  and pdata ,0xf7 ,pdata
 b0033 60108081  hstore 1 ,core_gpio_sel1
@@ -36254,7 +36256,7 @@
 c0013 20200016  branch z_mouse_le_ll_enable_start_enc_flag
 
 z_mouse_le_ll_reconn_start_encryt:
-c0014 20400427  call p_app_updata_le_param
+c0014 20400428  call p_app_updata_le_param
 c0015 7046c60a  jam 10 ,mem_le_start_encrypt_timer
 
 z_mouse_le_ll_enable_start_enc_flag:
Index: output/ramcode.rom
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/ramcode.rom	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/ramcode.rom	(working copy)
@@ -1,12 +1,12 @@
 20200040
-204003b0
+204003b2
 6800c1de
 6000ccea
 204006f9
 6800c685
 6000c6da
 204004c8
-20400328
+20400329
 20400797
 20400014
 20400027
@@ -17,20 +17,20 @@
 2040582c
 20405818
 20403e1e
-202002fa
-58000371
+202002fb
+58000372
 60014d64
-5800039c
+5800039e
 600141ef
 58000634
 600141f9
-580003cb
+580003cd
 600141f1
 580002aa
 600141ed
-58000403
+58000405
 600141f5
-580003f0
+580003f2
 600141f3
 5800044a
 600141eb
@@ -40,13 +40,13 @@
 58000019
 60014d76
 24558031
-204002dc
+204002de
 20400450
 6800c71f
 6000c71e
 6800c241
 c3810000
-20200399
+2020039b
 58000177
 60014d76
 20600000
@@ -119,7 +119,7 @@
 d8a009ae
 df20000c
 20407ed4
-20400382
+20400383
 20406a03
 20405cf6
 2455ac65
@@ -168,9 +168,9 @@
 2040070a
 204000b6
 6800cb26
-c0008374
+c0008375
 6800c69a
-c2808374
+c2808375
 204000e4
 24740000
 204002b1
@@ -237,7 +237,7 @@
 204002b4
 204002b1
 20403ebf
-204002fc
+204002fd
 68120070
 681a0078
 98418400
@@ -379,7 +379,7 @@
 6803cbd0
 207a0000
 20207fe7
-2040038e
+2040038f
 704c5f00
 1a20fe01
 6000cc33
@@ -681,7 +681,7 @@
 20600000
 20600000
 c6130000
-20400378
+20400379
 204000ec
 6800c040
 c30002b1
@@ -700,7 +700,7 @@
 20400001
 204002c8
 6800c720
-c001036a
+c001036b
 2040052f
 6800c210
 c01982cd
@@ -709,7 +709,7 @@
 70016d06
 2040048e
 20207ddd
-20200328
+20200329
 6800ccea
 6000c1de
 20600000
@@ -730,17 +730,19 @@
 70479e01
 20405814
 704afe01
-20400328
+204002de
+20202bfa
+20400329
 204040c0
 204040d9
-c01802e4
-c01882f5
+c01802e6
+c01882f6
 204040d1
 200003e8
-202002de
-20400394
+202002e0
+20400395
 6800c6de
-c02d02e8
+c02d02ea
 202040e0
 7046e007
 58008006
@@ -752,10 +754,9 @@
 98467c00
 20628000
 20406413
-20002ee0
 1a60a602
-202002ed
-20400394
+202002ef
+20400395
 6800c6de
 c03840e8
 7046e001
@@ -778,12 +779,12 @@
 793ffe00
 6010807f
 20600000
-20400359
+2040035a
 20404423
 68014778
 d840aa55
 98467c00
-2022834a
+2022834b
 60094778
 244282cb
 2040441c
@@ -792,20 +793,20 @@
 68024b4b
 6002477b
 60024c5b
-20400359
-2040032a
-20400341
-20400336
-2040032d
-204002fe
+2040035a
+2040032b
+20400342
+20400337
+2040032e
+204002ff
 d8400007
 da204b6f
 da40005f
 6801c700
 9a40fe00
-20400336
-2040032d
-20400351
+20400337
+2040032e
+20400352
 70421276
 20203d36
 6801c700
@@ -818,7 +819,7 @@
 6011008c
 58000005
 204064f3
-c280032d
+c280032e
 20600000
 1fe22600
 1a227e00
@@ -837,18 +838,18 @@
 6801c700
 da204720
 20600000
-20400359
-20400341
+2040035a
+20400342
 20206562
-20400347
-20400363
+20400348
+20400364
 204002cb
 2040431a
 6802477b
 60024c5b
 20600000
 700aa2b9
-204002fe
+204002ff
 204069ac
 2040650b
 da204b46
@@ -856,7 +857,7 @@
 20406556
 202069ac
 700aa2ab
-20200352
+20200353
 704b745a
 20600000
 704b6801
@@ -865,7 +866,7 @@
 68034d78
 600344a0
 20600000
-20400359
+2040035a
 d8400007
 da204b6f
 da40005f
@@ -877,7 +878,7 @@
 c28101f3
 68024b4b
 60024c5b
-2040031a
+2040031b
 202001f5
 20404401
 6801469f
@@ -888,23 +889,23 @@
 20600000
 d8c01800
 d8a0480a
-20400380
+20400381
 d8c01900
-20400380
+20400381
 d8c01a00
-20400380
+20400381
 d8c01b00
 df20001b
 20207f01
 d8c0480a
 d8a01800
-20400380
+20400381
 d8a01900
-20400380
+20400381
 d8a01a00
-20400380
+20400381
 d8a01b00
-20200380
+20200381
 70417200
 704b421e
 20600000
@@ -914,9 +915,10 @@
 6000cb41
 6002469b
 202002db
-20400328
+20400329
 da604b9f
-204002ed
+204002ef
+20402bfa
 6800c77a
 c0ff8534
 6800c6e1
@@ -925,7 +927,7 @@
 20405892
 247a0000
 6800cb74
-c07f83a3
+c07f83a5
 6800c6c5
 1fe17e03
 c1818000
@@ -935,12 +937,12 @@
 c282c179
 20403f97
 24740000
-2040038b
-2040038e
-204003c6
+2040038c
+2040038f
+204003c8
 da20469a
 20407e3d
-205403b5
+205403b7
 20600000
 7047a207
 7047a304
@@ -953,7 +955,7 @@
 20600000
 da20469a
 20407e54
-203403bd
+203403bf
 20600000
 20405652
 6800c7c3
@@ -981,11 +983,11 @@
 c284bf8a
 20403f97
 24740000
-2040038b
-2040038e
-204003c6
+2040038c
+2040038f
+204003c8
 6800cb03
-c00083df
+c00083e1
 6800cb0a
 207a0000
 20203f81
@@ -1007,13 +1009,13 @@
 e0a28000
 20600000
 20407e34
-204003f3
+204003f5
 20203ee0
 6808c6e7
 20400577
 6808c6e7
 2040681d
-20208401
+20208403
 20400572
 6800c6b6
 c1000000
@@ -1026,39 +1028,38 @@
 20400572
 20203d62
 1a627e00
-c00a0414
-c00a8423
-c0148427
-c0190429
-c020042b
-c002042d
-c009842d
+c00a0416
+c00a8424
+c0148428
+c019042a
+c020042c
+c002042e
+c009842e
 c00cb3df
-c0108431
-c0008433
+c0108432
+c0008434
 c001043b
 c015843f
 c01c8441
 c01d0444
 c01e0447
 2020417d
-204002db
 58000000
 6001cb67
 68034b4b
 680b4722
 98467c00
-2442835b
+2442835c
 20403410
 704b6e01
 6800c7a1
-243a0420
+243a0421
 704b6c14
 204004e6
-204003b0
+204003b2
 202041c3
 2040044d
-2040031a
+2040031b
 7011c6a2
 2020076a
 700a9912
@@ -1074,7 +1075,6 @@
 7011c6b1
 2020076a
 2040048c
-204002db
 58000000
 6001cb67
 204004e6
@@ -1082,7 +1082,7 @@
 70480900
 202042ca
 2040044d
-2040031a
+2040031b
 7011c6b4
 2020076a
 7011c6b2
@@ -1102,7 +1102,7 @@
 6800cafe
 207a0000
 704afe00
-204002dc
+204002de
 58000006
 20406414
 1fe1fe08
@@ -1168,7 +1168,7 @@
 70438f00
 d8e00007
 204043d2
-2020035f
+20200360
 da604b43
 da400496
 2020336d
@@ -1455,7 +1455,7 @@
 c08285b0
 70478e03
 20405892
-205a03b9
+205a03bb
 20205622
 6800c6c5
 1fe17e03
@@ -1779,7 +1779,7 @@
 204043d2
 204042e8
 204042fb
-2020031a
+2020031b
 20405890
 247a0000
 20205abf
@@ -1911,7 +1911,7 @@
 9840fe00
 1fe0fffb
 6001cb58
-20400359
+2040035a
 6801cb58
 d8400100
 da201f00
@@ -1920,7 +1920,7 @@
 680a4b5b
 98467c00
 2422877a
-20400328
+20400329
 58001f00
 60014199
 70419b40
Index: output/romcode.rom
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/romcode.rom	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/output/romcode.rom	(working copy)
@@ -24630,7 +24630,7 @@
 704b0301
 20600000
 18427e00
-c002842f
+c0028430
 20204d41
 c0080011
 c008801e
@@ -24739,7 +24739,7 @@
 68014682
 c285800b
 2040001c
-2040035b
+2040035c
 20403418
 68014687
 600146ac
@@ -24756,12 +24756,12 @@
 2feffe00
 2040fddd
 202004fe
-20400363
+20400364
 68094b6f
 18408401
 60094b6f
 600944a1
-2040031f
+20400320
 180a7e00
 6000c4a0
 20600000
@@ -24837,7 +24837,7 @@
 68024c5b
 6002477b
 20404366
-2020031a
+2020031b
 58000000
 6001cd7e
 20600000
@@ -24853,7 +24853,7 @@
 704b4100
 20402f20
 204001a8
-20200374
+20200375
 68024c13
 202001dc
 70119eff
@@ -24899,7 +24899,7 @@
 704b4100
 20402f20
 204001a8
-20200374
+20200375
 68024c13
 202001dc
 6800cd71
@@ -24935,7 +24935,7 @@
 70018533
 704b74ff
 204042fb
-2020031a
+2020031b
 6800cb41
 207a0000
 6800cc5f
@@ -24988,23 +24988,23 @@
 6801421d
 60014b6f
 20403e54
-2040030c
+2040030d
 6800c720
 c1010000
 68034b4b
 680b4722
 98467c00
-2422835b
+2422835c
 68094b6f
 18408401
 60094b6f
 600944a1
-2040031f
+20400320
 180a7e00
 6000c4a0
 680344a0
 60034b61
-2020035d
+2020035e
 20600000
 204074b9
 d8c08c00
@@ -25092,7 +25092,7 @@
 58000009
 60014496
 60014498
-20400427
+20400428
 7047c401
 20600000
 704b6001
@@ -25110,7 +25110,7 @@
 60014498
 7047c400
 70479e00
-204003b0
+204003b2
 20405816
 202041d9
 68120138
@@ -25119,13 +25119,13 @@
 20402c21
 204074bd
 20404482
-2040031a
+2040031b
 20403e9f
 204000ee
 6800c720
 1fe67c02
 20428039
-20400351
+20400352
 68108081
 1fe17ef7
 60108081
@@ -25155,7 +25155,7 @@
 6800c7a1
 c0008014
 20200016
-20400427
+20400428
 7046c60a
 d8e00001
 202041b9
@@ -25163,4 +25163,4 @@
 704b0100
 704b0a00
 202041d9
-00009b39
+0000f5ed
Index: program/bt.prog
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/program/bt.prog	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/program/bt.prog	(working copy)
@@ -3961,6 +3961,7 @@
 	call ceiling
 	store 1,mem_lpm_xtalcnt
 	nop 30000
+delays_5ms:
 	nop 30000
 	nop 30000	
 	rtn
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/program/patch.prog	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/program/patch.prog	(working copy)
@@ -1244,7 +1244,8 @@
 	call le_set_config_more_data
 p_mouse_init_sensor_reset:
 	jam 1,mem_mouse_init_sensor_reset_flag
-//	branch p_mouse_init_sunt
+	call p_mouse_init_sunt
+	branch delays_5ms
 	
 p_mouse_init_sunt:
 	call p_mouse_spi_init
@@ -1276,7 +1277,6 @@
 	isub temp,null
 	rtn zero
 	call twspi_write
-	nop 12000
 	increase 2,regc
 	branch p_sensor_wr_seq
 
@@ -1539,6 +1539,7 @@
 	call p_mouse_spi_init
 	arg mem_sensor_poweron_init,regc
 	call p_sensor_wr_seq
+	call delays_5ms
 p_mouse_dpi_config:
 	fetch 1,mem_mouse_dpi
 	bne 0xff,p_mouse_seting_dpi
@@ -1750,7 +1751,7 @@
 
 ifdef BLE
 p_mouse_le_bb_event_connected:
-	call p_mouse_init_sensor_reset
+//	call p_mouse_init_sensor_reset
 ifdef BLE_FAST_CONN_ENABLE
 	setarg 0
 	store 3,mem_le_switch_adv_flag
@@ -1807,7 +1808,7 @@
 
 p_mouse_bb_event_connected:
 	call p_mouse_store_eeprom_enable
-	call p_mouse_init_sensor_reset
+//	call p_mouse_init_sensor_reset
 ifdef BLE_FAST_CONN_ENABLE
 	setarg 0
 	store 3,mem_le_switch_adv_flag
Index: sched/mouse.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/sched/mouse.dat	(revision 2533)
+++ /branch/mouse_project/YJX_Project/YJX_1059/SlideSwitch_JD-22_lap_random/sched/mouse.dat	(working copy)
@@ -292,7 +292,7 @@
 mem_24g_allpowerful_addr:0f 0f 0f 0f 0f 0f
 mem_24g_common_temp:00 00 00 00 00 00 00 00 00 00
 mem_24g_enter_hibernate:80 4f 12
-mem_firmware_version:04 00
+mem_firmware_version:05 00
 
 mem_device_flag:
 02
