Index: output/flash.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/output/flash.dat	(revision 2524)
+++ /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/output/flash.dat	(working copy)
@@ -39,7 +39,7 @@
 20
 40
 03
-11
+10
 20
 40
 06
@@ -83,11 +83,11 @@
 20
 20
 02
-e4
+e3
 58
 00
 03
-54
+53
 60
 01
 4d
@@ -119,7 +119,7 @@
 58
 00
 03
-ce
+cf
 60
 01
 41
@@ -127,7 +127,7 @@
 58
 00
 03
-b3
+b4
 60
 01
 41
@@ -435,7 +435,7 @@
 20
 40
 03
-65
+64
 20
 40
 6a
@@ -623,7 +623,7 @@
 c0
 00
 83
-57
+56
 20
 40
 00
@@ -891,7 +891,7 @@
 20
 40
 02
-e6
+e5
 68
 12
 00
@@ -1463,7 +1463,7 @@
 20
 40
 03
-71
+70
 70
 4c
 62
@@ -2667,7 +2667,7 @@
 20
 40
 03
-5b
+5a
 20
 40
 00
@@ -2759,7 +2759,7 @@
 c0
 01
 03
-52
+51
 68
 00
 c2
@@ -2799,7 +2799,7 @@
 20
 20
 03
-11
+10
 68
 00
 cc
@@ -2831,7 +2831,7 @@
 20
 40
 03
-11
+10
 20
 40
 40
@@ -2847,7 +2847,7 @@
 c0
 18
 82
-df
+de
 20
 40
 40
@@ -2863,7 +2863,7 @@
 20
 40
 03
-77
+76
 68
 00
 c6
@@ -2875,7 +2875,7 @@
 c0
 2a
 02
-dc
+db
 20
 20
 40
@@ -2920,10 +2920,6 @@
 40
 64
 13
-20
-00
-2e
-e0
 1a
 60
 a6
@@ -2947,7 +2943,7 @@
 20
 40
 03
-77
+76
 68
 00
 c6
@@ -3039,7 +3035,7 @@
 20
 40
 03
-41
+40
 20
 40
 44
@@ -3059,7 +3055,7 @@
 20
 22
 83
-33
+32
 60
 09
 47
@@ -3091,27 +3087,27 @@
 20
 40
 03
-41
+40
 20
 40
 03
-13
+12
 20
 40
 03
-2a
+29
 20
 40
 03
-1f
+1e
 20
 40
 03
-16
+15
 20
 40
 02
-e8
+e7
 d8
 40
 00
@@ -3135,15 +3131,15 @@
 20
 40
 03
-1f
+1e
 20
 40
 03
-16
+15
 20
 40
 03
-39
+38
 70
 42
 12
@@ -3195,7 +3191,7 @@
 c2
 80
 03
-16
+15
 20
 60
 00
@@ -3271,11 +3267,11 @@
 20
 40
 03
-41
+40
 20
 40
 03
-2a
+29
 20
 20
 65
@@ -3283,11 +3279,11 @@
 20
 40
 03
-30
+2f
 20
 40
 03
-4b
+4a
 20
 40
 43
@@ -3311,7 +3307,7 @@
 20
 40
 02
-e8
+e7
 20
 40
 69
@@ -3343,7 +3339,7 @@
 20
 20
 03
-3a
+39
 70
 4b
 77
@@ -3379,7 +3375,7 @@
 20
 40
 03
-41
+40
 d8
 40
 00
@@ -3451,7 +3447,7 @@
 20
 40
 03
-63
+62
 d8
 c0
 19
@@ -3459,7 +3455,7 @@
 20
 40
 03
-63
+62
 d8
 c0
 1a
@@ -3467,7 +3463,7 @@
 20
 40
 03
-63
+62
 d8
 c0
 1b
@@ -3491,7 +3487,7 @@
 20
 40
 03
-63
+62
 d8
 a0
 19
@@ -3499,7 +3495,7 @@
 20
 40
 03
-63
+62
 d8
 a0
 1a
@@ -3507,7 +3503,7 @@
 20
 40
 03
-63
+62
 d8
 a0
 1b
@@ -3515,7 +3511,7 @@
 20
 20
 03
-63
+62
 70
 41
 72
@@ -3555,7 +3551,7 @@
 20
 40
 03
-11
+10
 da
 60
 4b
@@ -3565,6 +3561,10 @@
 02
 d4
 20
+40
+2b
+fa
+20
 20
 03
 7b
@@ -3643,11 +3643,11 @@
 20
 40
 03
-6e
+6d
 20
 40
 03
-71
+70
 20
 40
 03
@@ -3789,17 +3789,21 @@
 00
 01
 20
-20
+40
 02
 c2
 20
+20
+2b
+fa
+20
 40
 7e
 34
 20
 40
 03
-b6
+b7
 20
 20
 3e
@@ -3823,7 +3827,7 @@
 20
 20
 83
-c0
+c1
 20
 40
 05
@@ -3907,7 +3911,7 @@
 c0
 0a
 03
-d8
+d9
 c0
 0a
 83
@@ -3940,10 +3944,6 @@
 20
 41
 7d
-20
-40
-03
-b1
 58
 00
 00
@@ -3967,7 +3967,7 @@
 24
 42
 83
-43
+42
 20
 40
 34
@@ -4307,7 +4307,7 @@
 20
 20
 03
-47
+46
 da
 60
 4b
@@ -4499,7 +4499,7 @@
 20
 40
 03
-03
+02
 20
 20
 43
@@ -6387,7 +6387,7 @@
 20
 20
 03
-03
+02
 20
 40
 58
@@ -6915,7 +6915,7 @@
 20
 40
 03
-41
+40
 68
 01
 cb
@@ -6951,7 +6951,7 @@
 20
 40
 03
-11
+10
 58
 00
 1f
@@ -7452,8 +7452,8 @@
 20
 07
 41
-34
-a9
+47
+5e
 aa
 55
 08
@@ -8363,7 +8363,7 @@
 00
 ac
 4b
-04
+05
 00
 aa
 55
@@ -8609,7 +8609,7 @@
 20
 40
 03
-03
+02
 20
 20
 41
@@ -8889,7 +8889,7 @@
 20
 40
 03
-03
+02
 68
 00
 cb
@@ -8941,7 +8941,7 @@
 20
 40
 03
-03
+02
 20
 40
 3e
@@ -8957,7 +8957,7 @@
 20
 40
 03
-39
+38
 68
 10
 80
@@ -9317,7 +9317,7 @@
 20
 40
 02
-f6
+f5
 68
 00
 c7
@@ -9341,11 +9341,11 @@
 24
 22
 83
-43
+42
 20
 20
 03
-45
+44
 20
 60
 00
@@ -9561,7 +9561,7 @@
 20
 20
 03
-03
+02
 68
 00
 cb
@@ -9917,7 +9917,7 @@
 20
 20
 03
-57
+56
 68
 02
 4c
@@ -10125,7 +10125,7 @@
 20
 20
 03
-03
+02
 58
 00
 00
@@ -10189,7 +10189,7 @@
 20
 20
 03
-57
+56
 68
 02
 4c
@@ -10585,7 +10585,7 @@
 20
 40
 03
-43
+42
 20
 40
 34
@@ -10625,7 +10625,7 @@
 20
 40
 03
-33
+32
 68
 00
 c2
@@ -11570,5 +11570,5 @@
 55
 00
 00
-45
-6f
+3b
+19
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/output/program.lis	(revision 2524)
+++ /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/output/program.lis	(working copy)
@@ -14,7 +14,7 @@
 0005 6800c685 fetch 1 ,mem_ui_button_timeout 
 0006 6000c6da store 1 ,mem_combination_ui_button_count 
 0007 2040048e call p_mouse_bt_discovery_button_up_init 
-0008 20400311 call p_mouse_spi_init 
+0008 20400310 call p_mouse_spi_init 
 0009 204006dd call p_drawing_optima_init 
 000a 20400014 call p_mouse_cb_fuction 
 000b 20400025 call p_mouse_wakeup_from_power 
@@ -25,10 +25,10 @@
 0010 2040582c call le_set_fixed_ltk 
 0011 20405818 call le_set_config_read_authentication 
 0012 20403e1e call mouse_param_init 
-0013 202002e4 branch p_mouse_setting_config 
+0013 202002e3 branch p_mouse_setting_config 
 
 p_mouse_cb_fuction:
-0014 58000354 setarg p_mouse_g24_package_data 
+0014 58000353 setarg p_mouse_g24_package_data 
 0015 60014d67 store 2 ,mem_cb_24g_data 
 0016 58000380 setarg p_mouse_le 
 0017 600141ef store 2 ,mem_cb_le_process 
@@ -36,9 +36,9 @@
 0019 600141f9 store 2 ,mem_cb_att_write 
 001a 58000298 setarg p_mouse_before_lpm 
 001b 600141ed store 2 ,mem_cb_before_lpm 
-001c 580003ce setarg p_mouse_priority_bb_event 
+001c 580003cf setarg p_mouse_priority_bb_event 
 001d 600141f5 store 2 ,mem_cb_bb_event_process 
-001e 580003b3 setarg p_mouse_idle 
+001e 580003b4 setarg p_mouse_idle 
 001f 600141f3 store 2 ,mem_cb_idle_process 
 0020 580003fb setarg p_mouse_before_hibernate 
 0021 600141eb store 2 ,mem_cb_before_hibernate 
@@ -129,7 +129,7 @@
 0068 d8a009ae arg mem_sp_state ,contw 
 0069 df20000c arg 12 ,loopcnt 
 006a 20407ed4 call clear_mem 
-006b 20400365 call p_mouse_le_txbuff_load 
+006b 20400364 call p_mouse_le_txbuff_load 
 006c 20406a03 call rfcomm_init 
 006d 20405cf6 call init_lmp 
 006e 2455ac65 ncall lpm_disable_exen_output ,wake 
@@ -190,7 +190,7 @@
 0097 20400650 call power_ctrl_start 
 0098 204000a4 call g24_long_sleep_shorter_param_update 
 0099 6800cb28 fetch 1 ,mem_mouse_multi_led_state 
-009a c0008357 beq on ,p_g24_transmit_by_interrupt_enable 
+009a c0008356 beq on ,p_g24_transmit_by_interrupt_enable 
 
 p_g24_short_sleep:
 009b 204000d2 call p_g24_lpm_wait 
@@ -287,7 +287,7 @@
 
 p_mouse_setgpio_hibernate:
 00dc 20403ebf call mouse_lpm_before_common 
-00dd 204002e6 call p_flash_ncs_disable 
+00dd 204002e5 call p_flash_ncs_disable 
 00de 68120070 hfetch 4 ,core_gpio_oe0 
 00df 681a0078 hfetcht 4 ,core_gpio_pu0 
 00e0 98418400 ior temp ,temp 
@@ -484,7 +484,7 @@
 016b 20207fe7 branch enable_user 
 
 p_g24_accumulate_mouse_data:
-016c 20400371 call p_mouse_data_xy_release 
+016c 20400370 call p_mouse_data_xy_release 
 016d 704c6200 jam 0 ,mem_24g_abort_pac 
 016e 1a20fe01 add rega ,1 ,pdata 
 016f 6000cc36 store 1 ,mem_24g_datalen 
@@ -873,7 +873,7 @@
 
 p_mouse_before_lpm:
 0298 c6130000 rtnmark1 mark_24g 
-0299 2040035b call p_mouse_le_txbuff_save 
+0299 2040035a call p_mouse_le_txbuff_save 
 029a 204000da call p_mouse_setgpio_lpm 
 029b 6800c040 fetch 1 ,mem_context 
 029c c300029f bbit0 state_inconn ,p_clear_wake 
@@ -908,7 +908,7 @@
 p_mouse_check_reconn_target:
 02ae 204002bb call p_mouse_tx_power_init 
 02af 6800c720 fetch 1 ,mem_device_flag 
-02b0 c0010352 beq mode_24g_device ,p_mouse_connect_24g_mode 
+02b0 c0010351 beq mode_24g_device ,p_mouse_connect_24g_mode 
 02b1 6800c210 fetch 1 ,mem_xrecord_mode 
 02b2 c01a02be beq rec_4_mode ,p_mouse4_0_check_reconn_target 
 02b3 204004a1 call p_mouse_fast_conn_adv_switch_timer_reinit 
@@ -920,7 +920,7 @@
 02b9 202004c3 branch p_mouse_discovery_multi_led_blink 
 
 p_device_wake_from_lpm:
-02ba 20200311 branch p_mouse_spi_init 
+02ba 20200310 branch p_mouse_spi_init 
 
 p_mouse_tx_power_init:
 02bb 6800cced fetch 1 ,mem_tx_power_temp 
@@ -936,22 +936,22 @@
 02c1 202006b0 branch p_zcode_entrance 
 
 p_mouse_init_sunt:
-02c2 20400311 call p_mouse_spi_init 
+02c2 20400310 call p_mouse_spi_init 
 02c3 204040c0 call mouse_spi_sdio_gpio_pollup 
 
 p_mouse_init_sensor:
 02c4 204040d9 call mouse_read_sensor_id 
 02c5 c01802ca beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-02c6 c01882df beq p3065_id1 ,p_mouse_p3065_init_param 
+02c6 c01882de beq p3065_id1 ,p_mouse_p3065_init_param 
 02c7 204040d1 call mouse_twspi_reset 
 02c8 200003e8 nop 1000 
 02c9 202002c4 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-02ca 20400377 call p_mouse_sensor_poweron 
+02ca 20400376 call p_mouse_sensor_poweron 
 02cb 6800c6de fetch 1 ,mem_sensor_id2 
 02cc c02d02cf beq p_mx8650 ,p_mouse_mx8650_init_param 
-02cd c02a02dc beq pka8_id2 ,p_mouse_ka8_init_param 
+02cd c02a02db beq pka8_id2 ,p_mouse_ka8_init_param 
 02ce 202040e0 branch mouse_init_p32xx_id2_judge 
 
 p_mouse_mx8650_init_param:
@@ -967,231 +967,231 @@
 02d6 98467c00 isub temp ,null 
 02d7 20628000 rtn zero 
 02d8 20406413 call twspi_write 
-02d9 20002ee0 nop 12000 
-02da 1a60a602 increase 2 ,regc 
-02db 202002d4 branch p_sensor_wr_seq 
+02d9 1a60a602 increase 2 ,regc 
+02da 202002d4 branch p_sensor_wr_seq 
 
 p_mouse_ka8_init_param:
-02dc 7046e002 jam ka8 ,mem_config_sensor_type 
-02dd da604b94 arg mem_sensor_ka8_init ,regc 
-02de 202002d4 branch p_sensor_wr_seq 
+02db 7046e002 jam ka8 ,mem_config_sensor_type 
+02dc da604b94 arg mem_sensor_ka8_init ,regc 
+02dd 202002d4 branch p_sensor_wr_seq 
 
 p_mouse_p3065_init_param:
-02df 20400377 call p_mouse_sensor_poweron 
-02e0 6800c6de fetch 1 ,mem_sensor_id2 
-02e1 c03840e8 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
-02e2 7046e001 jam p3065 ,mem_config_sensor_type 
-02e3 20600000 rtn 
+02de 20400376 call p_mouse_sensor_poweron 
+02df 6800c6de fetch 1 ,mem_sensor_id2 
+02e0 c03840e8 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+02e1 7046e001 jam p3065 ,mem_config_sensor_type 
+02e2 20600000 rtn 
 
 p_mouse_setting_config:
-02e4 7011c680 jam zcode_80 ,mem_zcode_temp_param0 
-02e5 202006b0 branch p_zcode_entrance 
+02e3 7011c680 jam zcode_80 ,mem_zcode_temp_param0 
+02e4 202006b0 branch p_zcode_entrance 
 
 p_flash_ncs_disable:
-02e6 6808cb47 fetcht 1 ,mem_flash_ncs_gpio 
-02e7 20206825 branch gpio_out_inactive 
+02e5 6808cb47 fetcht 1 ,mem_flash_ncs_gpio 
+02e6 20206825 branch gpio_out_inactive 
 
 p_spid_init_flash:
-02e8 70808640 jam 0x40 ,core_spid_ctrl 
-02e9 70808700 jam 0x0 ,core_spid_delay 
-02ea 68108081 hfetch 1 ,core_gpio_sel1 
-02eb 793ffe00 set0 0 ,pdata 
-02ec 793ffe01 set0 1 ,pdata 
-02ed 79207e03 set1 3 ,pdata 
-02ee 793ffe04 set0 4 ,pdata 
-02ef 60108081 hstore 1 ,core_gpio_sel1 
-02f0 58000000 setarg 0 
-02f1 600201f5 store 4 ,mem_spid_tbuf 
-02f2 6810807f hfetch 1 ,core_gpio_pd3 
-02f3 793ffe00 set0 0 ,pdata 
-02f4 6010807f hstore 1 ,core_gpio_pd3 
-02f5 20600000 rtn 
+02e7 70808640 jam 0x40 ,core_spid_ctrl 
+02e8 70808700 jam 0x0 ,core_spid_delay 
+02e9 68108081 hfetch 1 ,core_gpio_sel1 
+02ea 793ffe00 set0 0 ,pdata 
+02eb 793ffe01 set0 1 ,pdata 
+02ec 79207e03 set1 3 ,pdata 
+02ed 793ffe04 set0 4 ,pdata 
+02ee 60108081 hstore 1 ,core_gpio_sel1 
+02ef 58000000 setarg 0 
+02f0 600201f5 store 4 ,mem_spid_tbuf 
+02f1 6810807f hfetch 1 ,core_gpio_pd3 
+02f2 793ffe00 set0 0 ,pdata 
+02f3 6010807f hstore 1 ,core_gpio_pd3 
+02f4 20600000 rtn 
 
 p_mouse_load_flash_info_check:
-02f6 20400341 call p_flash_release_deep_power_down 
-02f7 20404423 call mouse_load_flash_flag 
-02f8 68014778 fetch 2 ,mem_store_flag 
-02f9 d840aa55 arg eeprom_init_flag ,temp 
-02fa 98467c00 isub temp ,null 
-02fb 20228333 branch p_mouse_load_flash_device_info ,zero 
-02fc 60094778 storet 2 ,mem_store_flag 
-02fd 2040441c call mouse_ble_init_address 
-02fe 6800c6e1 fetch 1 ,mem_config_sensor_motion 
-02ff 6000c77a store 1 ,mem_mouse_dpi 
-0300 68024b4e fetch 4 ,mem_mouse_24g_addr_init 
-0301 6002477b store 4 ,mem_mouse_24g_addr 
-0302 60024c5e store 4 ,mem_24g_addr 
+02f5 20400340 call p_flash_release_deep_power_down 
+02f6 20404423 call mouse_load_flash_flag 
+02f7 68014778 fetch 2 ,mem_store_flag 
+02f8 d840aa55 arg eeprom_init_flag ,temp 
+02f9 98467c00 isub temp ,null 
+02fa 20228332 branch p_mouse_load_flash_device_info ,zero 
+02fb 60094778 storet 2 ,mem_store_flag 
+02fc 2040441c call mouse_ble_init_address 
+02fd 6800c6e1 fetch 1 ,mem_config_sensor_motion 
+02fe 6000c77a store 1 ,mem_mouse_dpi 
+02ff 68024b4e fetch 4 ,mem_mouse_24g_addr_init 
+0300 6002477b store 4 ,mem_mouse_24g_addr 
+0301 60024c5e store 4 ,mem_24g_addr 
 
 p_mouse_store_flash_device_info:
-0303 20400341 call p_flash_release_deep_power_down 
-0304 20400313 call p_flash_erase_sector 
-0305 2040032a call p_mouse_information_flash_parameters 
-0306 2040031f call p_spid_write_flash 
-0307 20400316 call p_wait_flash_done 
+0302 20400340 call p_flash_release_deep_power_down 
+0303 20400312 call p_flash_erase_sector 
+0304 20400329 call p_mouse_information_flash_parameters 
+0305 2040031e call p_spid_write_flash 
+0306 20400315 call p_wait_flash_done 
 
 p_mouse_store_flash_user_data:
-0308 204002e8 call p_spid_init_flash 
-0309 d8400007 arg 7 ,temp 
-030a da204b72 arg mem_mouse_flash_start_temp ,rega 
-030b da40005f arg mouse_user_data_offect ,regb 
-030c 6801c700 fetch 3 ,mem_flash_base 
-030d 9a40fe00 iadd regb ,pdata 
-030e 2040031f call p_spid_write_flash 
-030f 20400316 call p_wait_flash_done 
-0310 20400339 call p_flash_deep_power_down 
+0307 204002e7 call p_spid_init_flash 
+0308 d8400007 arg 7 ,temp 
+0309 da204b72 arg mem_mouse_flash_start_temp ,rega 
+030a da40005f arg mouse_user_data_offect ,regb 
+030b 6801c700 fetch 3 ,mem_flash_base 
+030c 9a40fe00 iadd regb ,pdata 
+030d 2040031e call p_spid_write_flash 
+030e 20400315 call p_wait_flash_done 
+030f 20400338 call p_flash_deep_power_down 
 
 p_mouse_spi_init:
-0311 70421276 jam 0x76 ,mem_spi_init_clk 
-0312 20203d36 branch mouse_spi_init 
+0310 70421276 jam 0x76 ,mem_spi_init_clk 
+0311 20203d36 branch mouse_spi_init 
 
 p_flash_erase_sector:
-0313 6801c700 fetch 3 ,mem_flash_base 
-0314 6001c232 store 3 ,mem_spi_write_addr 
-0315 2040652a call flash_erase_sector + 2 
+0312 6801c700 fetch 3 ,mem_flash_base 
+0313 6001c232 store 3 ,mem_spi_write_addr 
+0314 2040652a call flash_erase_sector + 2 
 
 p_wait_flash_done:
-0316 580186a0 setarg 100000 
-0317 20402a8f call sleep 
-0318 2040650b call spid_unlock_flash 
-0319 580001fa setarg mem_spid_rbuf 
-031a 6011008c hstore 2 ,core_spid_rxaddr 
-031b 58000005 setarg flash_read_satus 
-031c 204064f3 call spid_read_reg 
-031d c2800316 bbit1 flash_status_wip ,p_wait_flash_done 
-031e 20600000 rtn 
+0315 580186a0 setarg 100000 
+0316 20402a8f call sleep 
+0317 2040650b call spid_unlock_flash 
+0318 580001fa setarg mem_spid_rbuf 
+0319 6011008c hstore 2 ,core_spid_rxaddr 
+031a 58000005 setarg flash_read_satus 
+031b 204064f3 call spid_read_reg 
+031c c2800315 bbit1 flash_status_wip ,p_wait_flash_done 
+031d 20600000 rtn 
 
 p_spid_write_flash:
-031f 1fe22600 copy pdata ,regc 
-0320 1a227e00 copy rega ,pdata 
-0321 1fe0fffc increase -4 ,pdata 
-0322 1fe22400 copy pdata ,regb 
-0323 ea420000 ifetch 4 ,regb 
-0324 60024b49 store 4 ,mem_write_flash_head_temp 
-0325 1a627e00 copy regc ,pdata 
-0326 20406552 call spid_write_flash 
-0327 68024b49 fetch 4 ,mem_write_flash_head_temp 
-0328 e2420000 istore 4 ,regb 
-0329 20600000 rtn 
+031e 1fe22600 copy pdata ,regc 
+031f 1a227e00 copy rega ,pdata 
+0320 1fe0fffc increase -4 ,pdata 
+0321 1fe22400 copy pdata ,regb 
+0322 ea420000 ifetch 4 ,regb 
+0323 60024b49 store 4 ,mem_write_flash_head_temp 
+0324 1a627e00 copy regc ,pdata 
+0325 20406552 call spid_write_flash 
+0326 68024b49 fetch 4 ,mem_write_flash_head_temp 
+0327 e2420000 istore 4 ,regb 
+0328 20600000 rtn 
 
 p_mouse_information_flash_parameters:
-032a 5800477f setarg mem_mouse_information_end 
-032b d8404720 arg mem_mouse_information_start ,temp 
-032c 98460400 isub temp ,temp 
-032d 6801c700 fetch 3 ,mem_flash_base 
-032e da204720 arg mem_mouse_information_start ,rega 
-032f 20600000 rtn 
+0329 5800477f setarg mem_mouse_information_end 
+032a d8404720 arg mem_mouse_information_start ,temp 
+032b 98460400 isub temp ,temp 
+032c 6801c700 fetch 3 ,mem_flash_base 
+032d da204720 arg mem_mouse_information_start ,rega 
+032e 20600000 rtn 
 
 p_mouse_read_flash:
-0330 20400341 call p_flash_release_deep_power_down 
-0331 2040032a call p_mouse_information_flash_parameters 
-0332 20206562 branch spid_read_flash 
+032f 20400340 call p_flash_release_deep_power_down 
+0330 20400329 call p_mouse_information_flash_parameters 
+0331 20206562 branch spid_read_flash 
 
 p_mouse_load_flash_device_info:
-0333 20400330 call p_mouse_read_flash 
-0334 2040034b call p_mouse_load_flash_user_data 
-0335 2040431a call mouse_select_reconn_device 
-0336 6802477b fetch 4 ,mem_mouse_24g_addr 
-0337 60024c5e store 4 ,mem_24g_addr 
-0338 20600000 rtn 
+0332 2040032f call p_mouse_read_flash 
+0333 2040034a call p_mouse_load_flash_user_data 
+0334 2040431a call mouse_select_reconn_device 
+0335 6802477b fetch 4 ,mem_mouse_24g_addr 
+0336 60024c5e store 4 ,mem_24g_addr 
+0337 20600000 rtn 
 
 p_flash_deep_power_down:
-0339 700aa2b9 jam flash_command_deep_power_down ,mem_temp 
+0338 700aa2b9 jam flash_command_deep_power_down ,mem_temp 
 
 p_spid_write_flash_cmd:
-033a 204002e8 call p_spid_init_flash 
-033b 204069ac call delay_nop100 
-033c 2040650b call spid_unlock_flash 
-033d da204b49 arg mem_write_flash_head_temp ,rega 
-033e 68088aa2 fetcht 1 ,mem_temp 
-033f 20406556 call spid_write_flash_common 
-0340 202069ac branch delay_nop100 
+0339 204002e7 call p_spid_init_flash 
+033a 204069ac call delay_nop100 
+033b 2040650b call spid_unlock_flash 
+033c da204b49 arg mem_write_flash_head_temp ,rega 
+033d 68088aa2 fetcht 1 ,mem_temp 
+033e 20406556 call spid_write_flash_common 
+033f 202069ac branch delay_nop100 
 
 p_flash_release_deep_power_down:
-0341 700aa2ab jam flash_command_release_deep_power_down ,mem_temp 
-0342 2020033a branch p_spid_write_flash_cmd 
+0340 700aa2ab jam flash_command_release_deep_power_down ,mem_temp 
+0341 20200339 branch p_spid_write_flash_cmd 
 
 p_mouse_fast_conn_disable:
-0343 704b775a jam 0x5a ,mem_mouse_fast_conn_flag 
-0344 20600000 rtn 
+0342 704b775a jam 0x5a ,mem_mouse_fast_conn_flag 
+0343 20600000 rtn 
 
 p_mouse_fast_conn_le_switch_adv:
-0345 704b6b01 jam 1 ,mem_le_switch_adv_timer 
-0346 704b6a01 jam 1 ,mem_le_switch_adv_flag 
+0344 704b6b01 jam 1 ,mem_le_switch_adv_timer 
+0345 704b6a01 jam 1 ,mem_le_switch_adv_flag 
 
 p_mouse_fast_conn_init:
-0347 704b77ff jam 0xff ,mem_mouse_fast_conn_flag 
-0348 68034d7b fetch 6 ,mem_24g_allpowerful_addr 
-0349 600344a0 store 6 ,mem_le_lap 
-034a 20600000 rtn 
+0346 704b77ff jam 0xff ,mem_mouse_fast_conn_flag 
+0347 68034d7b fetch 6 ,mem_24g_allpowerful_addr 
+0348 600344a0 store 6 ,mem_le_lap 
+0349 20600000 rtn 
 
 p_mouse_load_flash_user_data:
-034b 20400341 call p_flash_release_deep_power_down 
-034c d8400007 arg 7 ,temp 
-034d da204b72 arg mem_mouse_flash_start_temp ,rega 
-034e da40005f arg mouse_user_data_offect ,regb 
-034f 6801c700 fetch 3 ,mem_flash_base 
-0350 9a40fe00 iadd regb ,pdata 
-0351 20206562 branch spid_read_flash 
+034a 20400340 call p_flash_release_deep_power_down 
+034b d8400007 arg 7 ,temp 
+034c da204b72 arg mem_mouse_flash_start_temp ,rega 
+034d da40005f arg mouse_user_data_offect ,regb 
+034e 6801c700 fetch 3 ,mem_flash_base 
+034f 9a40fe00 iadd regb ,pdata 
+0350 20206562 branch spid_read_flash 
 
 p_mouse_connect_24g_mode:
-0352 204004ef call p_mouse_mode_24g_device_multi_led_on 
+0351 204004ef call p_mouse_mode_24g_device_multi_led_on 
 
 p_mouse_start_24g_mode:
-0353 202001e1 branch p_g24_start_24g_mode 
+0352 202001e1 branch p_g24_start_24g_mode 
 
 p_mouse_g24_package_data:
-0354 20404401 call mouse_g24_package_data 
-0355 6801469f fetch 2 ,mem_mouse_z 
-0356 207a0000 rtn blank 
+0353 20404401 call mouse_g24_package_data 
+0354 6801469f fetch 2 ,mem_mouse_z 
+0355 207a0000 rtn blank 
 
 p_g24_transmit_by_interrupt_enable:
-0357 704d7601 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
-0358 58000000 setarg 0 
-0359 60014d77 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-035a 20600000 rtn 
+0356 704d7601 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
+0357 58000000 setarg 0 
+0358 60014d77 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+0359 20600000 rtn 
 
 p_mouse_le_txbuff_save:
-035b d8c01800 arg mem_le_tx_buffer0 ,contr 
-035c d8a0480a arg mem_le_tx_buffer0_omemalloc ,contw 
-035d 20400363 call p_mouse_le_txbuff_copy 
-035e d8c01900 arg mem_le_tx_buffer1 ,contr 
-035f 20400363 call p_mouse_le_txbuff_copy 
-0360 d8c01a00 arg mem_le_tx_buffer2 ,contr 
-0361 20400363 call p_mouse_le_txbuff_copy 
-0362 d8c01b00 arg mem_le_tx_buffer3 ,contr 
+035a d8c01800 arg mem_le_tx_buffer0 ,contr 
+035b d8a0480a arg mem_le_tx_buffer0_omemalloc ,contw 
+035c 20400362 call p_mouse_le_txbuff_copy 
+035d d8c01900 arg mem_le_tx_buffer1 ,contr 
+035e 20400362 call p_mouse_le_txbuff_copy 
+035f d8c01a00 arg mem_le_tx_buffer2 ,contr 
+0360 20400362 call p_mouse_le_txbuff_copy 
+0361 d8c01b00 arg mem_le_tx_buffer3 ,contr 
 
 p_mouse_le_txbuff_copy:
-0363 df20001b arg 27 ,loopcnt 
-0364 20207f01 branch memcpy 
+0362 df20001b arg 27 ,loopcnt 
+0363 20207f01 branch memcpy 
 
 p_mouse_le_txbuff_load:
-0365 d8c0480a arg mem_le_tx_buffer0_omemalloc ,contr 
-0366 d8a01800 arg mem_le_tx_buffer0 ,contw 
-0367 20400363 call p_mouse_le_txbuff_copy 
-0368 d8a01900 arg mem_le_tx_buffer1 ,contw 
-0369 20400363 call p_mouse_le_txbuff_copy 
-036a d8a01a00 arg mem_le_tx_buffer2 ,contw 
-036b 20400363 call p_mouse_le_txbuff_copy 
-036c d8a01b00 arg mem_le_tx_buffer3 ,contw 
-036d 20200363 branch p_mouse_le_txbuff_copy 
+0364 d8c0480a arg mem_le_tx_buffer0_omemalloc ,contr 
+0365 d8a01800 arg mem_le_tx_buffer0 ,contw 
+0366 20400362 call p_mouse_le_txbuff_copy 
+0367 d8a01900 arg mem_le_tx_buffer1 ,contw 
+0368 20400362 call p_mouse_le_txbuff_copy 
+0369 d8a01a00 arg mem_le_tx_buffer2 ,contw 
+036a 20400362 call p_mouse_le_txbuff_copy 
+036b d8a01b00 arg mem_le_tx_buffer3 ,contw 
+036c 20200362 branch p_mouse_le_txbuff_copy 
 
 p_mouse_le_current_mult_update:
-036e 70417200 jam 0 ,mem_lpm_mult 
-036f 704b451e jam 30 ,mem_mouse_le_current_mult_timer 
-0370 20600000 rtn 
+036d 70417200 jam 0 ,mem_lpm_mult 
+036e 704b451e jam 30 ,mem_mouse_le_current_mult_timer 
+036f 20600000 rtn 
 
 p_mouse_data_xy_release:
-0371 6800cb44 fetch 1 ,mem_mouse_long_mult_flag 
-0372 c1808000 rtnne 1 
-0373 58000000 setarg 0 
-0374 6000cb44 store 1 ,mem_mouse_long_mult_flag 
-0375 6002469b store 4 ,mem_mouse_x 
-0376 202003b1 branch p_mouse_init_sensor_reset 
+0370 6800cb44 fetch 1 ,mem_mouse_long_mult_flag 
+0371 c1808000 rtnne 1 
+0372 58000000 setarg 0 
+0373 6000cb44 store 1 ,mem_mouse_long_mult_flag 
+0374 6002469b store 4 ,mem_mouse_x 
+0375 202003b1 branch p_mouse_init_sensor_reset 
 
 p_mouse_sensor_poweron:
-0377 20400311 call p_mouse_spi_init 
-0378 da604ba2 arg mem_sensor_poweron_init ,regc 
-0379 204002d4 call p_sensor_wr_seq 
+0376 20400310 call p_mouse_spi_init 
+0377 da604ba2 arg mem_sensor_poweron_init ,regc 
+0378 204002d4 call p_sensor_wr_seq 
+0379 20402bfa call delays_5ms 
 037a 2020037b branch p_mouse_dpi_config 
 
 p_mouse_dpi_config:
@@ -1219,8 +1219,8 @@
 038a c282c179 bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
 038b 20403f97 call mouse_motion 
 038c 24740000 nrtn user 
-038d 2040036e call p_mouse_le_current_mult_update 
-038e 20400371 call p_mouse_data_xy_release 
+038d 2040036d call p_mouse_le_current_mult_update 
+038e 20400370 call p_mouse_data_xy_release 
 038f 204003aa call p_mouse_wheel_trigger 
 
 p_mouse_data_push:
@@ -1272,63 +1272,63 @@
 
 p_mouse_init_sensor_reset:
 03b1 704b0001 jam 1 ,mem_mouse_init_sensor_reset_flag 
-03b2 202002c2 branch p_mouse_init_sunt 
+03b2 204002c2 call p_mouse_init_sunt 
+03b3 20202bfa branch delays_5ms 
 
 p_mouse_idle:
-03b3 20407e34 call ui_check_paring_button 
-03b4 204003b6 call p_mouse_dpi_check 
-03b5 20203ee0 branch mouse_wheel_check 
+03b4 20407e34 call ui_check_paring_button 
+03b5 204003b7 call p_mouse_dpi_check 
+03b6 20203ee0 branch mouse_wheel_check 
 
 p_mouse_dpi_check:
-03b6 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-03b7 20400551 call p_gpio_set_input_pd 
-03b8 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-03b9 2040681d call gpio_get_bit 
-03ba 202083c0 branch p_mouse_dpi_up ,true 
-03bb 2040054c call p_gpio_set_input_pu 
+03b7 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
+03b8 20400551 call p_gpio_set_input_pd 
+03b9 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
+03ba 2040681d call gpio_get_bit 
+03bb 202083c1 branch p_mouse_dpi_up ,true 
+03bc 2040054c call p_gpio_set_input_pu 
 
 p_mouse_dpi_down:
-03bc 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
-03bd c1000000 rtneq dpi_button_state_down 
-03be 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
-03bf 20600000 rtn 
+03bd 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
+03be c1000000 rtneq dpi_button_state_down 
+03bf 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+03c0 20600000 rtn 
 
 p_mouse_dpi_up:
-03c0 2040054c call p_gpio_set_input_pu 
-03c1 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
-03c2 c1008000 rtneq dpi_button_state_up 
-03c3 7046b601 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
-03c4 6800cb74 fetch 1 ,mem_mouse_long_button_select_device 
-03c5 203a0465 branch p_mouse_select_device_and_reset ,blank 
-03c6 6800c77a fetch 1 ,mem_mouse_dpi 
-03c7 1fe0fe01 increase 1 ,pdata 
-03c8 1fe17e03 and pdata ,0x03 ,pdata 
-03c9 6000c77a store 1 ,mem_mouse_dpi 
-03ca 1fe0fe02 increase 2 ,pdata 
-03cb 6000cb2e store 1 ,mem_mouse_multi_led_blink_count 
-03cc 204004f4 call p_mouse_dpi_multi_led_blink 
-03cd 20203d7e branch mouse_seting_dpi 
+03c1 2040054c call p_gpio_set_input_pu 
+03c2 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
+03c3 c1008000 rtneq dpi_button_state_up 
+03c4 7046b601 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+03c5 6800cb74 fetch 1 ,mem_mouse_long_button_select_device 
+03c6 203a0465 branch p_mouse_select_device_and_reset ,blank 
+03c7 6800c77a fetch 1 ,mem_mouse_dpi 
+03c8 1fe0fe01 increase 1 ,pdata 
+03c9 1fe17e03 and pdata ,0x03 ,pdata 
+03ca 6000c77a store 1 ,mem_mouse_dpi 
+03cb 1fe0fe02 increase 2 ,pdata 
+03cc 6000cb2e store 1 ,mem_mouse_multi_led_blink_count 
+03cd 204004f4 call p_mouse_dpi_multi_led_blink 
+03ce 20203d7e branch mouse_seting_dpi 
 
 p_mouse_priority_bb_event:
-03ce 1a627e00 copy regc ,pdata 
-03cf c00a03d8 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-03d0 c00a83e9 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-03d1 c01483ec beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
-03d2 c01903ee beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-03d3 c02003f0 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
-03d4 c01c83f2 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-03d5 c01d03f5 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-03d6 c01e03f8 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-03d7 2020417d branch mouse_priority_bb_event + 1 
+03cf 1a627e00 copy regc ,pdata 
+03d0 c00a03d9 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+03d1 c00a83e9 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+03d2 c01483ec beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
+03d3 c01903ee beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+03d4 c02003f0 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+03d5 c01c83f2 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+03d6 c01d03f5 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+03d7 c01e03f8 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+03d8 2020417d branch mouse_priority_bb_event + 1 
 
 p_mouse_le_bb_event_connected:
-03d8 204003b1 call p_mouse_init_sensor_reset 
 03d9 58000000 setarg 0 
 03da 6001cb6a store 3 ,mem_le_switch_adv_flag 
 03db 68034b4e fetch 6 ,mem_mouse_24g_addr_init 
 03dc 680b4722 fetcht 6 ,mem_device1_addr 
 03dd 98467c00 isub temp ,null 
-03de 24428343 ncall p_mouse_fast_conn_disable ,zero 
+03de 24428342 ncall p_mouse_fast_conn_disable ,zero 
 03df 20403410 call app_ble_store_reconn_info 
 03e0 704b7101 jam 1 ,mem_mouse_le_bb_connected_flag 
 03e1 6800c7a1 fetch 1 ,mem_mouse_le_reconnect_flag 
@@ -1455,7 +1455,7 @@
 0430 70438f00 jam 0 ,mem_le_scan_data_len 
 0431 d8e00007 arg mouse_store_eeprom_flag ,queue 
 0432 204043d2 call mouse_disable_function_flag 
-0433 20200347 branch p_mouse_fast_conn_init 
+0433 20200346 branch p_mouse_fast_conn_init 
 
 p_mouse_g24_long_sleep_param_update_timer:
 0434 da604b46 arg mem_24g_long_sleep_param_update_timer ,regc 
@@ -1527,7 +1527,7 @@
 0460 98467c00 isub temp ,null 
 0461 244143cc ncall mouse_select_device_count_clean ,positive 
 0462 6008c720 storet 1 ,mem_device_flag 
-0463 20400303 call p_mouse_store_flash_device_info 
+0463 20400302 call p_mouse_store_flash_device_info 
 0464 20204378 branch mouse_ready_reconnection_by_button + 8 
 
 p_mouse_select_device_and_reset:
@@ -2241,7 +2241,7 @@
 
 p_mouse_unplug_clean_bdaddr:
 063a 204042fb call mouse_before_store_reconn_info 
-063b 20200303 branch p_mouse_store_flash_device_info 
+063b 20200302 branch p_mouse_store_flash_device_info 
 
 p_check_51cmd_ble_update_connect_param:
 063c 20405890 call le_fifo_check_full 
@@ -2427,7 +2427,7 @@
 06bc 9840fe00 iadd temp ,pdata 
 06bd 1fe0fffb increase -5 ,pdata 
 06be 6001cb5b store 3 ,mem_flash_address 
-06bf 20400341 call p_flash_release_deep_power_down 
+06bf 20400340 call p_flash_release_deep_power_down 
 
 p_zcode_read_loop:
 06c0 6801cb5b fetch 3 ,mem_flash_address 
@@ -2438,7 +2438,7 @@
 06c5 680a4b5e fetcht 4 ,mem_zcode_head 
 06c6 98467c00 isub temp ,null 
 06c7 242286c0 nbranch p_zcode_read_loop ,zero 
-06c8 20400311 call p_mouse_spi_init 
+06c8 20400310 call p_mouse_spi_init 
 06c9 58001f00 setarg mem_zcode_buff 
 06ca 60014199 store 2 ,mem_patch_ptr 
 06cb 70419b40 jam zcode_code_size ,mem_patch_len 
@@ -6547,6 +6547,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 
@@ -35415,7 +35417,7 @@
 z_mouse_start_discovery_norandom:
 40008 68034b64  fetch 6 ,mem_le_normal_lap
 40009 600344a0  store 6 ,mem_le_lap
-4000a 20400343  call p_mouse_fast_conn_disable
+4000a 20400342  call p_mouse_fast_conn_disable
 4000b 20403418  call app_lpm_mult_disable
 4000c 68014687  fetch 2 ,mem_discovery_timeout
 4000d 600146ac  store 2 ,mem_mouse_discovery_timer
@@ -35425,7 +35427,7 @@
 40011 600146ae  store 2 ,mem_mouse_direct_timer
 40012 2040042d  call p_mouse_store_eeprom_enable
 40013 204043ca  call mouse_bt_discovery_button_down_disable
-40014 20400333  call p_mouse_load_flash_device_info
+40014 20400332  call p_mouse_load_flash_device_info
 40015 6800c210  fetch 1 ,mem_xrecord_mode
 40016 1fe67c33  sub pdata ,rec_3_mode ,null
 40017 2042801c  call z3_check_51cmd_adv ,zero
@@ -35528,7 +35530,7 @@
 60014 68024c5e  fetch 4 ,mem_24g_addr
 60015 6002477b  store 4 ,mem_mouse_24g_addr
 60016 20404366  call mouse_cheak_select_24gdevice
-60017 20200303  branch p_mouse_store_flash_device_info
+60017 20200302  branch p_mouse_store_flash_device_info
 
 z_g24_auto_pair_timeout_clear:
 60018 58000000  setarg 0
@@ -35550,7 +35552,7 @@
 60024 704b4400  jam 0 ,mem_mouse_long_mult_flag
 60025 20402f20  call g24_app_tx_attempt_success
 60026 20400197  call p_g24_txbuf_clear
-60027 20200357  branch p_g24_transmit_by_interrupt_enable
+60027 20200356  branch p_g24_transmit_by_interrupt_enable
 
 z_g24_store_dongle_addr:
 60028 68024c16  fetch 4 ,mem_24g_rxpayload + 2
@@ -35607,7 +35609,7 @@
 70020 704b4400  jam 0 ,mem_mouse_long_mult_flag
 70021 20402f20  call g24_app_tx_attempt_success
 70022 20400197  call p_g24_txbuf_clear
-70023 20200357  branch p_g24_transmit_by_interrupt_enable
+70023 20200356  branch p_g24_transmit_by_interrupt_enable
 
 z7_g24_store_dongle_addr:
 70024 68024c16  fetch 4 ,mem_24g_rxpayload + 2
@@ -35661,7 +35663,7 @@
 80007 704b77ff  jam 0xff ,mem_mouse_fast_conn_flag
 80008 204042fb  call mouse_before_store_reconn_info
 80009 704721ff  jam 0xff ,mem_device1_type
-8000a 20200303  branch p_mouse_store_flash_device_info
+8000a 20200302  branch p_mouse_store_flash_device_info
 
 z_g24_search_dongle:
 8000b 6800cb44  fetch 1 ,mem_mouse_long_mult_flag
@@ -35726,14 +35728,14 @@
 9000a 60014154  store 2 ,mem_lpm_interval
 9000b 204068a2  call load_adc_init
 9000c 20403e54  call mouse_adc_init
-9000d 204002f6  call p_mouse_load_flash_info_check
+9000d 204002f5  call p_mouse_load_flash_info_check
 9000e 6800c720  fetch 1 ,mem_device_flag
 9000f c1010000  rtneq mode_24g_device
 90010 68034b4e  fetch 6 ,mem_mouse_24g_addr_init
 90011 680b4722  fetcht 6 ,mem_device1_addr
 90012 98467c00  isub temp ,null
-90013 24228343  nbranch p_mouse_fast_conn_disable ,zero
-90014 20200345  branch p_mouse_fast_conn_le_switch_adv
+90013 24228342  nbranch p_mouse_fast_conn_disable ,zero
+90014 20200344  branch p_mouse_fast_conn_le_switch_adv
 90015 20600000  rtn
 org 0xa0001
 
@@ -35849,7 +35851,7 @@
 b001f 20400394  call p_mouse_data_init
 b0020 20405816  call le_clr_config_more_data
 b0021 204041d9  call mouse_bb_disconnected
-b0022 20400303  call p_mouse_store_flash_device_info
+b0022 20400302  call p_mouse_store_flash_device_info
 b0023 6800cb6d  fetch 1 ,mem_mouse_start_discovery_enable
 b0024 207a0000  rtn blank
 
@@ -35866,11 +35868,11 @@
 b002c 20402c21  call lpm_write_ctrl
 b002d 204074bd  call disable_authrom
 b002e 20404482  call mouse_devce_led_off
-b002f 20400303  call p_mouse_store_flash_device_info
+b002f 20400302  call p_mouse_store_flash_device_info
 b0030 20403e9f  call mouse_before_hibernate_wheel_gpio_set
 b0031 204000dc  call p_mouse_setgpio_hibernate
 b0032 204004eb  call p_mouse_multi_led_gpio_set_float
-b0033 20400339  call p_flash_deep_power_down
+b0033 20400338  call p_flash_deep_power_down
 b0034 68108081  hfetch 1 ,core_gpio_sel1
 b0035 1fe17ef7  and pdata ,0xf7 ,pdata
 b0036 60108081  hstore 1 ,core_gpio_sel1
@@ -35920,6 +35922,6 @@
 c0019 704b0100  jam 0 ,mem_bt_rcvd_switch_req_accept
 c001a 704b0300  jam 0 ,mem_bt_send_lmp_setup_complete
 c001b 704b0c00  jam 0 ,mem_mouse_bt_send_first_package_flag
-c001c 20400303  call p_mouse_store_flash_device_info
+c001c 20400302  call p_mouse_store_flash_device_info
 c001d 202041d9  branch mouse_bb_disconnected
  branch mouse_bb_disconnected
Index: output/romcode.rom
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/output/romcode.rom	(revision 2524)
+++ /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/output/romcode.rom	(working copy)
@@ -24702,7 +24702,7 @@
 70479e00
 68034b64
 600344a0
-20400343
+20400342
 20403418
 68014687
 600146ac
@@ -24712,7 +24712,7 @@
 600146ae
 2040042d
 204043ca
-20400333
+20400332
 6800c210
 1fe67c33
 2042801c
@@ -24789,7 +24789,7 @@
 68024c5e
 6002477b
 20404366
-20200303
+20200302
 58000000
 6001cd81
 20600000
@@ -24805,7 +24805,7 @@
 704b4400
 20402f20
 20400197
-20200357
+20200356
 68024c16
 202001cb
 70119eff
@@ -24851,7 +24851,7 @@
 704b4400
 20402f20
 20400197
-20200357
+20200356
 68024c16
 202001cb
 6800cd74
@@ -24888,7 +24888,7 @@
 704b77ff
 204042fb
 704721ff
-20200303
+20200302
 6800cb44
 207a0000
 6800cc62
@@ -24938,14 +24938,14 @@
 60014154
 204068a2
 20403e54
-204002f6
+204002f5
 6800c720
 c1010000
 68034b4e
 680b4722
 98467c00
-24228343
-20200345
+24228342
+20200344
 20600000
 c0480004
 c048801e
@@ -25025,7 +25025,7 @@
 20400394
 20405816
 204041d9
-20400303
+20400302
 6800cb6d
 207a0000
 68034b64
@@ -25038,11 +25038,11 @@
 20402c21
 204074bd
 20404482
-20400303
+20400302
 20403e9f
 204000dc
 204004eb
-20400339
+20400338
 68108081
 1fe17ef7
 60108081
@@ -25077,6 +25077,6 @@
 704b0100
 704b0300
 704b0c00
-20400303
+20400302
 202041d9
-000029f5
+00004972
Index: program/bt.prog
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/program/bt.prog	(revision 2524)
+++ /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/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/DpiSwitch_BR-CM892G/program/patch.prog	(revision 2524)
+++ /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/program/patch.prog	(working copy)
@@ -1265,7 +1265,6 @@
 	isub temp,null
 	rtn zero
 	call twspi_write
-	nop 12000
 	increase 2,regc
 	branch p_sensor_wr_seq
 
@@ -1529,6 +1528,7 @@
 	call p_mouse_spi_init
 	arg mem_sensor_poweron_init,regc
 	call p_sensor_wr_seq
+	call delays_5ms
 	branch p_mouse_dpi_config
 	
 p_mouse_dpi_config:
@@ -1640,7 +1640,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
 
 ifdef CLASSIC_BT
 p_mouse_bt:
@@ -1749,7 +1750,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
@@ -1806,7 +1807,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/DpiSwitch_BR-CM892G/sched/mouse.dat	(revision 2524)
+++ /branch/mouse_project/YJX_Project/YJX_1059/DpiSwitch_BR-CM892G/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
