Index: format/rom.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/format/rom.format	(revision 4572)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/format/rom.format	(working copy)
@@ -9772,20 +9772,6 @@
 1 mem_commbination_dpi_timer
 1 mem_mouse_commbination_dpi_gpio
 
-//rgb
-1 mem_rgb_led_off_enable
-1 mem_rgb_led_on_enable
-1 mem_rgb_led_off_enable_timer
-1 mem_rgb_led_on_enable_timer
-2 mem_rgb_led_on_timer
-
-2 mem_rgb_led_off_check_count
-2 mem_rgb_led_on_check_count
-1 mem_rgb_led_on_continue_1min_timeout_flag
-1 mem_mbutton_function_disable
-1 mem_mouse_rgb_ctrl_gpio
-1 mem_mouse_rgb_adc_no_power_flag
-
 1 mem_mouse_dpi_led_blink_enable
 
 1 mem_mouse_led_poweron_enable
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/output/eeprom.dat	(revision 4572)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ce
+c6
 18
 c2
 84
@@ -79,7 +79,7 @@
 c0
 67
 86
-20
+1e
 c0
 68
 03
@@ -87,7 +87,7 @@
 c0
 68
 85
-aa
+a8
 c0
 69
 83
@@ -95,7 +95,7 @@
 c0
 6a
 05
-91
+8f
 c0
 6a
 be
@@ -119,7 +119,7 @@
 c0
 6f
 05
-fa
+f8
 c0
 6f
 80
@@ -199,7 +199,7 @@
 c0
 76
 86
-2b
+29
 20
 20
 13
@@ -1211,7 +1211,7 @@
 20
 40
 05
-a1
+9f
 20
 20
 3b
@@ -1763,7 +1763,7 @@
 20
 20
 05
-a1
+9f
 20
 40
 26
@@ -2067,11 +2067,11 @@
 20
 40
 05
-9c
+9a
 20
 40
 05
-a1
+9f
 20
 20
 3e
@@ -2119,7 +2119,7 @@
 20
 40
 05
-f4
+f2
 d8
 40
 00
@@ -2307,7 +2307,7 @@
 20
 40
 05
-f4
+f2
 20
 20
 3e
@@ -2815,7 +2815,7 @@
 20
 40
 05
-a1
+9f
 20
 20
 02
@@ -3062,11 +3062,11 @@
 1c
 70
 4c
-b9
+ab
 01
 70
 4c
-ba
+ac
 05
 20
 40
@@ -3615,7 +3615,7 @@
 da
 60
 4c
-bb
+ad
 da
 40
 46
@@ -3647,7 +3647,7 @@
 6f
 e0
 cc
-bc
+ae
 c0
 00
 83
@@ -3662,11 +3662,11 @@
 00
 70
 4c
-bc
+ae
 00
 70
 4c
-bd
+af
 00
 20
 20
@@ -3674,11 +3674,11 @@
 28
 70
 4c
-bc
+ae
 01
 70
 4c
-bd
+af
 01
 20
 20
@@ -3687,7 +3687,7 @@
 6f
 e0
 cc
-b9
+ab
 20
 7a
 00
@@ -3695,7 +3695,7 @@
 6f
 e0
 cc
-ba
+ac
 20
 3a
 03
@@ -3707,14 +3707,14 @@
 67
 e0
 cc
-ba
+ac
 20
 60
 00
 00
 70
 4c
-b9
+ab
 00
 20
 20
@@ -3762,11 +3762,11 @@
 07
 70
 4c
-b9
+ab
 00
 70
 4c
-ba
+ac
 00
 70
 4c
@@ -4019,7 +4019,7 @@
 6f
 e0
 cc
-b9
+ab
 24
 7a
 00
@@ -4655,7 +4655,7 @@
 20
 40
 05
-aa
+a8
 1f
 e1
 7e
@@ -5287,7 +5287,7 @@
 20
 40
 05
-a8
+a6
 6f
 e0
 c8
@@ -5302,12 +5302,12 @@
 d0
 24
 34
-05
-8c
+47
+28
 20
 40
 05
-8e
+8c
 20
 20
 45
@@ -5315,7 +5315,7 @@
 6f
 e0
 cc
-bd
+af
 20
 7a
 00
@@ -5351,7 +5351,7 @@
 6f
 e0
 cc
-c5
+b7
 1f
 e0
 fe
@@ -5359,7 +5359,7 @@
 67
 e0
 cc
-c5
+b7
 1f
 e6
 7c
@@ -5651,7 +5651,7 @@
 6f
 e0
 cc
-c5
+b7
 c0
 40
 05
@@ -5679,15 +5679,7 @@
 67
 e0
 cc
-c5
-20
-60
-00
-00
-20
-40
-47
-28
+b7
 20
 60
 00
@@ -5715,7 +5707,7 @@
 c0
 05
 85
-98
+96
 20
 40
 42
@@ -5735,7 +5727,7 @@
 20
 40
 05
-9f
+9d
 da
 60
 4b
@@ -5755,7 +5747,7 @@
 c0
 05
 85
-9f
+9d
 20
 20
 42
@@ -5783,7 +5775,7 @@
 c0
 05
 85
-a6
+a4
 20
 20
 42
@@ -5799,7 +5791,7 @@
 20
 40
 05
-aa
+a8
 20
 20
 40
@@ -5819,23 +5811,23 @@
 20
 40
 05
-b3
+b1
 20
 40
 05
-b8
+b6
 20
 40
 05
-bd
+bb
 20
 40
 05
-da
+d8
 20
 40
 05
-e7
+e5
 20
 20
 41
@@ -5847,7 +5839,7 @@
 20
 40
 05
-f4
+f2
 20
 40
 41
@@ -5867,7 +5859,7 @@
 20
 40
 05
-f4
+f2
 20
 40
 41
@@ -5911,11 +5903,11 @@
 c0
 7f
 85
-c6
+c4
 20
 20
 05
-cd
+cb
 6f
 e0
 c9
@@ -5923,7 +5915,7 @@
 20
 40
 05
-f7
+f5
 68
 48
 c9
@@ -5951,7 +5943,7 @@
 20
 20
 85
-d6
+d4
 68
 48
 c9
@@ -5995,7 +5987,7 @@
 20
 20
 05
-d4
+d2
 6f
 e0
 c9
@@ -6027,7 +6019,7 @@
 c0
 7f
 85
-e3
+e1
 20
 20
 41
@@ -6039,7 +6031,7 @@
 20
 40
 05
-f7
+f5
 68
 48
 c9
@@ -6079,7 +6071,7 @@
 c0
 7f
 85
-f0
+ee
 20
 20
 41
@@ -6091,7 +6083,7 @@
 20
 40
 05
-f7
+f5
 68
 48
 c9
@@ -6127,7 +6119,7 @@
 20
 40
 05
-ff
+fd
 20
 40
 79
@@ -6135,11 +6127,11 @@
 20
 40
 06
-0c
+0a
 20
 40
 06
-03
+01
 20
 20
 46
@@ -6167,11 +6159,11 @@
 c2
 94
 86
-07
+05
 c2
 9b
 86
-07
+05
 20
 60
 00
@@ -6183,7 +6175,7 @@
 c2
 83
 06
-0a
+08
 20
 20
 46
@@ -6227,7 +6219,7 @@
 20
 40
 06
-15
+13
 20
 20
 40
@@ -6255,7 +6247,7 @@
 c0
 7f
 86
-1c
+1a
 20
 20
 40
@@ -6267,7 +6259,7 @@
 20
 40
 05
-f7
+f5
 68
 48
 c9
@@ -6279,7 +6271,7 @@
 6f
 e0
 cc
-bd
+af
 24
 7a
 00
@@ -6314,7 +6306,7 @@
 27
 70
 4c
-bb
+ad
 02
 20
 60
@@ -6352,8 +6344,8 @@
 20
 26
 f6
-a2
-57
+6a
+35
 aa
 55
 40
@@ -6577,13 +6569,6 @@
 ff
 aa
 55
-01
-00
-b6
-4c
-ff
-aa
-55
 03
 00
 24
@@ -6667,7 +6652,7 @@
 55
 04
 00
-c0
+b2
 4c
 90
 01
@@ -7707,14 +7692,24 @@
 e8
 41
 01
+aa
+55
+05
+00
+f0
+4b
+02
+40
+00
+22
+1e
 55
 aa
 aa
 55
-37
-99
-d0
-87
+e9
+98
+b2
 ff
 ff
 ff
@@ -8188,5 +8183,10 @@
 ff
 ff
 ff
-7b
-e4
+ff
+ff
+ff
+ff
+ff
+b9
+54
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/output/memmap.format	(revision 4572)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/output/memmap.format	(working copy)
@@ -2284,28 +2284,17 @@
 0x4ca7 mem_mouse_commbination_dpi_check_enable
 0x4ca8 mem_commbination_dpi_timer
 0x4ca9 mem_mouse_commbination_dpi_gpio
-0x4caa mem_rgb_led_off_enable
-0x4cab mem_rgb_led_on_enable
-0x4cac mem_rgb_led_off_enable_timer
-0x4cad mem_rgb_led_on_enable_timer
-0x4cae mem_rgb_led_on_timer
-0x4cb0 mem_rgb_led_off_check_count
-0x4cb2 mem_rgb_led_on_check_count
-0x4cb4 mem_rgb_led_on_continue_1min_timeout_flag
-0x4cb5 mem_mbutton_function_disable
-0x4cb6 mem_mouse_rgb_ctrl_gpio
-0x4cb7 mem_mouse_rgb_adc_no_power_flag
-0x4cb8 mem_mouse_dpi_led_blink_enable
-0x4cb9 mem_mouse_led_poweron_enable
-0x4cba mem_mouse_led_poweron_timer
-0x4cbb mem_mouse_dpi_store_delay_timer
-0x4cbc mem_mouse_lazy_state
-0x4cbd mem_mouse_lazy_flag
-0x4cbe mem_mouse_max_cnt
-0x4cc0 mem_mouse_x_left_max_count
-0x4cc2 mem_mouse_x_right_max_count
-0x4cc4 mem_mouse_y_count
-0x4cc5 mem_24g_matrix_cnt
+0x4caa mem_mouse_dpi_led_blink_enable
+0x4cab mem_mouse_led_poweron_enable
+0x4cac mem_mouse_led_poweron_timer
+0x4cad mem_mouse_dpi_store_delay_timer
+0x4cae mem_mouse_lazy_state
+0x4caf mem_mouse_lazy_flag
+0x4cb0 mem_mouse_max_cnt
+0x4cb2 mem_mouse_x_left_max_count
+0x4cb4 mem_mouse_x_right_max_count
+0x4cb6 mem_mouse_y_count
+0x4cb7 mem_24g_matrix_cnt
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/output/program.lis	(revision 4572)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/output/program.lis	(working copy)
@@ -18,17 +18,17 @@
 000f c0650239 beq patch19_2 ,p_mouse_lpm_before_common 
 0010 c06600b9 beq patch19_4 ,p_mouse_adc_read_start 
 0011 c0670520 beq patch19_6 ,p_mouse_motion 
-0012 c0678620 beq patch19_7 ,p_mouse_dpi_process 
+0012 c067861e beq patch19_7 ,p_mouse_dpi_process 
 0013 c0680327 beq patch1a_0 ,p_mouse_seting_dpi 
-0014 c06885aa beq patch1a_1 ,p_mouse_check_key_gpio 
+0014 c06885a8 beq patch1a_1 ,p_mouse_check_key_gpio 
 0015 c0698340 beq patch1a_3 ,p_mouse_init_sunt 
-0016 c06a0591 beq patch1a_4 ,p_mouse_sensor_poweron 
+0016 c06a058f beq patch1a_4 ,p_mouse_sensor_poweron 
 0017 c06abe23 beq patch1a_5 ,mouse_app_enter_hibernate + 3 
 0018 c06b025b beq patch1a_6 ,p_mouse_priority_bb_event 
 0019 c06c836a beq patch1b_1 ,p_mouse_bb_event_timer 
 001a c06d04a5 beq patch1b_2 ,p_mouse_start_discovery 
 001b c06d84af beq patch1b_3 ,p_mouse_stop_discovery 
-001c c06f05fa beq patch1b_6 ,p_mouse_idle 
+001c c06f05f8 beq patch1b_6 ,p_mouse_idle 
 001d c06f8046 beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001e c070803e beq patch1c_1 ,p_mouse_led_off 
 001f c071003a beq patch1c_2 ,p_mouse_led_on 
@@ -50,7 +50,7 @@
 002d c07482c8 beq patch3d_1 ,p_g24_reconn_dispatch 
 002e c07501b8 beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002f c0760513 beq patch3d_4 ,p_g24_lpm_wait 
-0030 c076862b beq patch3d_5 ,p_power_ctrl_start 
+0030 c0768629 beq patch3d_5 ,p_power_ctrl_start 
 0031 2020137c branch loop 
 
 p_soft_reset:
@@ -391,7 +391,7 @@
 012a 20403d8a call mouse_usb_check_enable 
 012b 20404728 call mouse_drawing_optima_init 
 012c 2040016a call p_mouse_cb_fuction 
-012d 204005a1 call p_mouse_sensor_powerdown 
+012d 2040059f call p_mouse_sensor_powerdown 
 012e 20203bc9 branch mouse_init + 8 
 
 p_mouse_le_name_load:
@@ -567,7 +567,7 @@
 01b4 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 01b5 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 01b6 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-01b7 202005a1 branch p_mouse_sensor_powerdown 
+01b7 2020059f branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 01b8 20402631 call g24_txdata_prep 
@@ -671,8 +671,8 @@
 0200 58000006 setarg pan_reg_config 
 0201 20405b0d call twspi_read 
 0202 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0203 2040059c call p_mouse_sensor_reset 
-0204 204005a1 call p_mouse_sensor_powerdown 
+0203 2040059a call p_mouse_sensor_reset 
+0204 2040059f call p_mouse_sensor_powerdown 
 0205 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -686,7 +686,7 @@
 020d 6848c910 fetcht 1 ,mem_matrix_public_gpio 
 020e 20406042 call gpio_clr_wake 
 020f 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0210 204005f4 call p_mouse_gpio_config_output_high 
+0210 204005f2 call p_mouse_gpio_config_output_high 
 0211 d8400003 arg 3 ,temp 
 0212 20403f56 call mouse_gpio_config_input_pu 
 0213 20400239 call p_mouse_lpm_before_common 
@@ -751,7 +751,7 @@
 023c 20406050 call gpio_config_input 
 023d 20403f88 call mouse_wheel_check 
 023e 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-023f 204005f4 call p_mouse_gpio_config_output_high 
+023f 204005f2 call p_mouse_gpio_config_output_high 
 0240 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -909,8 +909,6 @@
 02b6 c31e4839 bbit0 mouse_enable_wheel_wake_up_cancel ,mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_hibernate_set:
-
-p_mouse_24g_hibernate_set_next:
 02b7 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
 02b8 20402652 call g24_transmit_next_packet 
 02b9 5fffffff setarg -1 
@@ -918,7 +916,7 @@
 02bb 58000000 setarg 0 
 02bc 67e3c8d0 store 7 ,mem_mouse_key 
 02bd 704be101 jam 1 ,mem_sensor_shutdown_flag 
-02be 204005a1 call p_mouse_sensor_powerdown 
+02be 2040059f call p_mouse_sensor_powerdown 
 02bf 20200246 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -998,8 +996,8 @@
 02f9 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
 02fa 6fe0c938 fetch 1 ,mem_device_flag 
 02fb c000031c beq mode_24g_device ,p_mouse_24g_start_mode 
-02fc 704cb901 jam 1 ,mem_mouse_led_poweron_enable 
-02fd 704cba05 jam 5 ,mem_mouse_led_poweron_timer 
+02fc 704cab01 jam 1 ,mem_mouse_led_poweron_enable 
+02fd 704cac05 jam 5 ,mem_mouse_led_poweron_timer 
 02fe 20400417 call p_mouse_device_multi_led_on + 1 
 
 p_mouse_le_fast_conn_judge:
@@ -1188,7 +1186,7 @@
 0385 2020049f branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_dpi_store_delay_timer:
-0386 da604cbb arg mem_mouse_dpi_store_delay_timer ,regc 
+0386 da604cad arg mem_mouse_dpi_store_delay_timer ,regc 
 0387 da404643 arg mouse_store_eerpom_dpi ,regb 
 0388 2020318a branch timer_single_step 
 
@@ -1200,32 +1198,32 @@
 038d 2020318a branch timer_single_step 
 
 p_mouse_check_lazy_state:
-038e 6fe0ccbc fetch 1 ,mem_mouse_lazy_state 
+038e 6fe0ccae fetch 1 ,mem_mouse_lazy_state 
 038f c0008392 beq on ,p_mouse_disable_lazy 
 0390 c0000395 beq off ,p_mouse_enable_lazy 
 0391 20600000 rtn 
 
 p_mouse_disable_lazy:
-0392 704cbc00 jam off ,mem_mouse_lazy_state 
-0393 704cbd00 jam 0 ,mem_mouse_lazy_flag 
+0392 704cae00 jam off ,mem_mouse_lazy_state 
+0393 704caf00 jam 0 ,mem_mouse_lazy_flag 
 0394 20200428 branch p_mouse_device_multi_led_off 
 
 p_mouse_enable_lazy:
-0395 704cbc01 jam on ,mem_mouse_lazy_state 
-0396 704cbd01 jam 1 ,mem_mouse_lazy_flag 
+0395 704cae01 jam on ,mem_mouse_lazy_state 
+0396 704caf01 jam 1 ,mem_mouse_lazy_flag 
 0397 20200416 branch p_mouse_device_multi_led_on 
 
 p_mouse_led_poweron_timer:
-0398 6fe0ccb9 fetch 1 ,mem_mouse_led_poweron_enable 
+0398 6fe0ccab fetch 1 ,mem_mouse_led_poweron_enable 
 0399 207a0000 rtn blank 
-039a 6fe0ccba fetch 1 ,mem_mouse_led_poweron_timer 
+039a 6fe0ccac fetch 1 ,mem_mouse_led_poweron_timer 
 039b 203a039f branch p_mouse_led_power_off ,blank 
 039c 1fe0ffff increase -1 
-039d 67e0ccba store 1 ,mem_mouse_led_poweron_timer 
+039d 67e0ccac store 1 ,mem_mouse_led_poweron_timer 
 039e 20600000 rtn 
 
 p_mouse_led_power_off:
-039f 704cb900 jam 0 ,mem_mouse_led_poweron_enable 
+039f 704cab00 jam 0 ,mem_mouse_led_poweron_enable 
 03a0 20200429 branch p_mouse_device_multi_led_off + 1 
 
 p_mouse_discovery_twice_check:
@@ -1243,8 +1241,8 @@
 03aa 20204507 branch mouse_check_direct_timeout_timer + 3 
 
 p_mouse_device_multi_led_parm_init:
-03ab 704cb900 jam 0 ,mem_mouse_led_poweron_enable 
-03ac 704cba00 jam 0 ,mem_mouse_led_poweron_timer 
+03ab 704cab00 jam 0 ,mem_mouse_led_poweron_enable 
+03ac 704cac00 jam 0 ,mem_mouse_led_poweron_timer 
 03ad 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
 03ae 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
 03af c4000000 rtnbit0 mouse_enable_1io2led 
@@ -1345,7 +1343,7 @@
 03ea 20600000 rtn 
 
 p_mouse_led_multi_timer:
-03eb 6fe0ccb9 fetch 1 ,mem_mouse_led_poweron_enable 
+03eb 6fe0ccab fetch 1 ,mem_mouse_led_poweron_enable 
 03ec 247a0000 nrtn blank 
 03ed 6fe0cc41 fetch 1 ,mem_mouse_multi_led_blink_enable 
 03ee 207a0000 rtn blank 
@@ -1590,7 +1588,7 @@
 
 p_mouse_commbination_key_start:
 0489 6048cb9d storet 1 ,mem_mouse_commbination_key 
-048a 204005aa call p_mouse_check_key_gpio 
+048a 204005a8 call p_mouse_check_key_gpio 
 048b 1fe17e07 and pdata ,0x07 ,pdata 
 048c 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
 048d 98467c00 isub temp ,null 
@@ -1800,16 +1798,16 @@
 0525 20400329 call p_mouse_seting_sensor_type 
 0526 20403f7e call mouse_zwheel 
 0527 20403f83 call mouse_t_zwheel 
-0528 204005a8 call p_mouse_key 
+0528 204005a6 call p_mouse_key 
 0529 6fe0c8d0 fetch 1 ,mem_mouse_key 
 052a 1fe17e1f and_into 0x1f ,pdata 
 052b 67e0c8d0 store 1 ,mem_mouse_key 
-052c 2434058c nbranch p_mouse_motion_nodata ,user 
-052d 2040058e call p_mouse_drawing_optima 
+052c 24344728 nbranch mouse_drawing_optima_init ,user 
+052d 2040058c call p_mouse_drawing_optima 
 052e 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_start_lazy_check:
-052f 6fe0ccbd fetch 1 ,mem_mouse_lazy_flag 
+052f 6fe0ccaf fetch 1 ,mem_mouse_lazy_flag 
 0530 207a0000 rtn blank 
 0531 d8e0000d arg 13 ,queue 
 0532 20407d74 call timer_check 
@@ -1822,9 +1820,9 @@
 0537 20207d66 branch timer_init 
 
 p_mouse_auto_ruling_check:
-0538 6fe0ccc5 fetch 1 ,mem_24g_matrix_cnt 
+0538 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
 0539 1fe0fe01 increase 1 ,pdata 
-053a 67e0ccc5 store 1 ,mem_24g_matrix_cnt 
+053a 67e0ccb7 store 1 ,mem_24g_matrix_cnt 
 053b 1fe67c0a sub pdata ,10 ,null 
 053c 20210554 branch p_ms_x_right ,positive 
 053d 1fe67c14 sub pdata ,20 ,null 
@@ -1925,7 +1923,7 @@
 0582 20200556 branch p_data 
 
 p_ruling_step_9:
-0583 6fe0ccc5 fetch 1 ,mem_24g_matrix_cnt 
+0583 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
 0584 c0400588 beq 128 ,p_mem_usb_data_square_cnt_set0 
 0585 5ffffff6 setarg -10 
 0586 67e148d1 store 2 ,mem_mouse_x 
@@ -1934,247 +1932,243 @@
 p_mem_usb_data_square_cnt_set0:
 0588 180a7e00 random pdata 
 0589 1fe17e7f and_into 0x7f ,pdata 
-058a 67e0ccc5 store 1 ,mem_24g_matrix_cnt 
+058a 67e0ccb7 store 1 ,mem_24g_matrix_cnt 
 058b 20600000 rtn 
 
-p_mouse_motion_nodata:
-058c 20404728 call mouse_drawing_optima_init 
-058d 20600000 rtn 
-
 p_mouse_drawing_optima:
-058e 6fe0c927 fetch 1 ,mem_config_sensor_type 
-058f c1018000 rtneq p3212 
-0590 2020471a branch mouse_drawing_optima 
+058c 6fe0c927 fetch 1 ,mem_config_sensor_type 
+058d c1018000 rtneq p3212 
+058e 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-0591 20403f65 call mouse_sensor_spi_init 
-0592 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0593 c0058598 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-0594 20404232 call mouse_sensor_reset 
-0595 da604aa3 arg mem_sensor_poweron_init ,regc 
-0596 2040422b call mouse_sensor_wr_seq 
-0597 20200329 branch p_mouse_seting_sensor_type 
+058f 20403f65 call mouse_sensor_spi_init 
+0590 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0591 c0058596 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+0592 20404232 call mouse_sensor_reset 
+0593 da604aa3 arg mem_sensor_poweron_init ,regc 
+0594 2040422b call mouse_sensor_wr_seq 
+0595 20200329 branch p_mouse_seting_sensor_type 
 
 p_mouse_ka8g2_sensor_init:
-0598 2040059f call p_mouse_ka8g2_sensor_reset 
-0599 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-059a 2040422b call mouse_sensor_wr_seq 
-059b 2020408e branch mouse_dpi_config 
+0596 2040059d call p_mouse_ka8g2_sensor_reset 
+0597 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+0598 2040422b call mouse_sensor_wr_seq 
+0599 2020408e branch mouse_dpi_config 
 
 p_mouse_sensor_reset:
-059c 6fe0c927 fetch 1 ,mem_config_sensor_type 
-059d c005859f beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-059e 20204232 branch mouse_sensor_reset 
+059a 6fe0c927 fetch 1 ,mem_config_sensor_type 
+059b c005859d beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+059c 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-059f 58009706 setarg 0x9706 
-05a0 20204233 branch mouse_sensor_reset_end 
+059d 58009706 setarg 0x9706 
+059e 20204233 branch mouse_sensor_reset_end 
 
 p_mouse_sensor_powerdown:
-05a1 204041a7 call mouse_init_sunt 
-05a2 20403f65 call mouse_sensor_spi_init 
-05a3 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05a4 c00585a6 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-05a5 2020423e branch mouse_sensor_powerdown_end 
+059f 204041a7 call mouse_init_sunt 
+05a0 20403f65 call mouse_sensor_spi_init 
+05a1 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05a2 c00585a4 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+05a3 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-05a6 58001f06 setarg 0x1f06 
-05a7 20205b0c branch twspi_write 
+05a4 58001f06 setarg 0x1f06 
+05a5 20205b0c branch twspi_write 
 
 p_mouse_key:
-05a8 204005aa call p_mouse_check_key_gpio 
-05a9 202040dd branch mouse_key + 1 
+05a6 204005a8 call p_mouse_check_key_gpio 
+05a7 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-05aa 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-05ab 245a4121 ncall mouse_check_key_gpio_once ,blank 
-05ac da200000 arg 0 ,rega 
-05ad 204005b3 call p_mouse_check_lkey_gpio 
-05ae 204005b8 call p_mouse_check_rkey_gpio 
-05af 204005bd call p_mouse_check_mkey_gpio 
-05b0 204005da call p_mouse_check_bkkey_gpio 
-05b1 204005e7 call p_mouse_check_fwkey_gpio 
-05b2 2020411e branch mouse_check_key_gpio_next 
+05a8 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+05a9 245a4121 ncall mouse_check_key_gpio_once ,blank 
+05aa da200000 arg 0 ,rega 
+05ab 204005b1 call p_mouse_check_lkey_gpio 
+05ac 204005b6 call p_mouse_check_rkey_gpio 
+05ad 204005bb call p_mouse_check_mkey_gpio 
+05ae 204005d8 call p_mouse_check_bkkey_gpio 
+05af 204005e5 call p_mouse_check_fwkey_gpio 
+05b0 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-05b3 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-05b4 204005f4 call p_mouse_gpio_config_output_high 
-05b5 20404124 call mouse_check_lkey_gpio 
-05b6 6848c918 fetcht 1 ,mem_lbutton_gpio 
-05b7 20203f56 branch mouse_gpio_config_input_pu 
+05b1 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+05b2 204005f2 call p_mouse_gpio_config_output_high 
+05b3 20404124 call mouse_check_lkey_gpio 
+05b4 6848c918 fetcht 1 ,mem_lbutton_gpio 
+05b5 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-05b8 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-05b9 204005f4 call p_mouse_gpio_config_output_high 
-05ba 2040412a call mouse_check_rkey_gpio 
-05bb 6848c919 fetcht 1 ,mem_rbutton_gpio 
-05bc 20203f56 branch mouse_gpio_config_input_pu 
+05b6 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+05b7 204005f2 call p_mouse_gpio_config_output_high 
+05b8 2040412a call mouse_check_rkey_gpio 
+05b9 6848c919 fetcht 1 ,mem_rbutton_gpio 
+05ba 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-05bd 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-05be c17f8000 rtneq gpio_disable 
-05bf 704b9602 jam mouse_m_key ,mem_mouse_key_temp 
-05c0 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
-05c1 1fe22600 copy pdata ,regc 
-05c2 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05c3 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05c4 c07f85c6 beq gpio_disable ,p_mouse_3io6key_m_check 
-05c5 202005cd branch p_mouse_check_key_gpio_next 
+05bb 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+05bc c17f8000 rtneq gpio_disable 
+05bd 704b9602 jam mouse_m_key ,mem_mouse_key_temp 
+05be 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
+05bf 1fe22600 copy pdata ,regc 
+05c0 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05c1 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05c2 c07f85c4 beq gpio_disable ,p_mouse_3io6key_m_check 
+05c3 202005cb branch p_mouse_check_key_gpio_next 
 
 p_mouse_3io6key_m_check:
-05c6 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-05c7 204005f7 call p_mouse_gpio_config_output_low 
-05c8 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05c9 20404195 call mouse_3io6key_check 
-05ca 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
-05cb 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05cc 20203f56 branch mouse_gpio_config_input_pu 
+05c4 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+05c5 204005f5 call p_mouse_gpio_config_output_low 
+05c6 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05c7 20404195 call mouse_3io6key_check 
+05c8 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
+05c9 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05ca 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_key_gpio_next:
-05cd 20406059 call gpio_get_bit 
-05ce 202085d6 branch p_mouse_check_m_button_connect_gnd ,true 
-05cf 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-05d0 20406069 call gpio_out_active 
-05d1 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05d2 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
-05d3 20404187 call mouse_check_key_connect_gnd 
+05cb 20406059 call gpio_get_bit 
+05cc 202085d4 branch p_mouse_check_m_button_connect_gnd ,true 
+05cd 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+05ce 20406069 call gpio_out_active 
+05cf 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05d0 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
+05d1 20404187 call mouse_check_key_connect_gnd 
 
 p_mouse_check_mkey_gpio_end:
-05d4 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
-05d5 20204168 branch mouse_matrix_public_gpio_reset 
+05d2 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
+05d3 20204168 branch mouse_matrix_public_gpio_reset 
 
 p_mouse_check_m_button_connect_gnd:
-05d6 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-05d7 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
-05d8 20404187 call mouse_check_key_connect_gnd 
-05d9 202005d4 branch p_mouse_check_mkey_gpio_end 
+05d4 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+05d5 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
+05d6 20404187 call mouse_check_key_connect_gnd 
+05d7 202005d2 branch p_mouse_check_mkey_gpio_end 
 
 p_mouse_check_bkkey_gpio:
-05da 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05db c17f8000 rtneq gpio_disable 
-05dc 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-05dd 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-05de 1fe22600 copy pdata ,regc 
-05df 6848c90d fetcht 1 ,mem_bk_button_gpio 
-05e0 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05e1 c07f85e3 beq gpio_disable ,p_mouse_3io6key_bk_check 
-05e2 2020413e branch mouse_check_bkkey_gpio_next 
+05d8 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05d9 c17f8000 rtneq gpio_disable 
+05da 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+05db 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+05dc 1fe22600 copy pdata ,regc 
+05dd 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05de 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05df c07f85e1 beq gpio_disable ,p_mouse_3io6key_bk_check 
+05e0 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-05e3 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05e4 204005f7 call p_mouse_gpio_config_output_low 
-05e5 6848c90d fetcht 1 ,mem_bk_button_gpio 
-05e6 2020414b branch mouse_3io6key_bk_check 
+05e1 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05e2 204005f5 call p_mouse_gpio_config_output_low 
+05e3 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05e4 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-05e7 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-05e8 c17f8000 rtneq gpio_disable 
-05e9 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-05ea 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-05eb 1fe22600 copy pdata ,regc 
-05ec 6848c90e fetcht 1 ,mem_fw_button_gpio 
-05ed 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05ee c07f85f0 beq gpio_disable ,p_mouse_3io6key_fw_check 
-05ef 20204157 branch mouse_check_fwkey_gpio_next 
+05e5 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+05e6 c17f8000 rtneq gpio_disable 
+05e7 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+05e8 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+05e9 1fe22600 copy pdata ,regc 
+05ea 6848c90e fetcht 1 ,mem_fw_button_gpio 
+05eb 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05ec c07f85ee beq gpio_disable ,p_mouse_3io6key_fw_check 
+05ed 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-05f0 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-05f1 204005f7 call p_mouse_gpio_config_output_low 
-05f2 6848c90e fetcht 1 ,mem_fw_button_gpio 
-05f3 20204164 branch mouse_3io6key_fw_check 
+05ee 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+05ef 204005f5 call p_mouse_gpio_config_output_low 
+05f0 6848c90e fetcht 1 ,mem_fw_button_gpio 
+05f1 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-05f4 c17f8000 rtneq gpio_disable 
-05f5 d840003f arg gpcfg_output_high ,temp 
-05f6 20206093 branch gpio_config_function_int 
+05f2 c17f8000 rtneq gpio_disable 
+05f3 d840003f arg gpcfg_output_high ,temp 
+05f4 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-05f7 c17f8000 rtneq gpio_disable 
-05f8 d840003e arg gpcfg_output_low ,temp 
-05f9 20206093 branch gpio_config_function_int 
+05f5 c17f8000 rtneq gpio_disable 
+05f6 d840003e arg gpcfg_output_low ,temp 
+05f7 20206093 branch gpio_config_function_int 
 
 p_mouse_idle:
-05fa 204005ff call p_mouse_low_voltage_led_no_enter_lpm 
-05fb 20407936 call ui_check_paring_button 
-05fc 2040060c call p_mouse_dpi_check 
-05fd 20400603 call p_mouse_select_device_check 
-05fe 20204650 branch mouse_idle + 5 
+05f8 204005fd call p_mouse_low_voltage_led_no_enter_lpm 
+05f9 20407936 call ui_check_paring_button 
+05fa 2040060a call p_mouse_dpi_check 
+05fb 20400601 call p_mouse_select_device_check 
+05fc 20204650 branch mouse_idle + 5 
 
 p_mouse_low_voltage_led_no_enter_lpm:
-05ff 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
-0600 c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
+05fd 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+05fe c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
 
 p_mouse_low_voltage_led_no_enter_lpm_next:
-0601 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0602 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
+05ff 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0600 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
 
 p_mouse_select_device_check:
-0603 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0604 c2948607 bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
-0605 c29b8607 bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
-0606 20600000 rtn 
+0601 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0602 c2948605 bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
+0603 c29b8605 bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
+0604 20600000 rtn 
 
 p_mouse_select_device_by_pb_button_check_judge:
-0607 6fe1478c fetch 2 ,mem_ui_state_map 
-0608 c283060a bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
-0609 2020465a branch mouse_select_device_by_pb_button 
+0605 6fe1478c fetch 2 ,mem_ui_state_map 
+0606 c2830608 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
+0607 2020465a branch mouse_select_device_by_pb_button 
 
 p_mouse_select_device_by_pb_button_check_once:
-060a 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
-060b 202001e5 branch p_mouse_select_device_by_pb_button 
+0608 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
+0609 202001e5 branch p_mouse_select_device_by_pb_button 
 
 p_mouse_dpi_check:
-060c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-060d c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-060e 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-060f c17f8000 rtneq gpio_disable 
-0610 da200000 arg 0 ,rega 
-0611 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-0612 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0613 20400615 call p_mouse_dpi_key_check 
-0614 2020402f branch mouse_dpi_check_next 
+060a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+060b c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+060c 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+060d c17f8000 rtneq gpio_disable 
+060e da200000 arg 0 ,rega 
+060f 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+0610 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0611 20400613 call p_mouse_dpi_key_check 
+0612 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0615 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0616 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-0617 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-0618 1fe22600 copy pdata ,regc 
-0619 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-061a c07f861c beq gpio_disable ,p_mouse_3io6key_dpi_check 
-061b 2020403f branch mouse_dpi_key_check_next 
+0613 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0614 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0615 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+0616 1fe22600 copy pdata ,regc 
+0617 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0618 c07f861a beq gpio_disable ,p_mouse_3io6key_dpi_check 
+0619 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-061c 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-061d 204005f7 call p_mouse_gpio_config_output_low 
-061e 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-061f 20204195 branch mouse_3io6key_check 
+061a 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+061b 204005f5 call p_mouse_gpio_config_output_low 
+061c 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+061d 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_process:
-0620 6fe0ccbd fetch 1 ,mem_mouse_lazy_flag 
-0621 247a0000 nrtn blank 
-0622 20404072 call mouse_dpi_ghost_check 
-0623 20740000 rtn user 
+061e 6fe0ccaf fetch 1 ,mem_mouse_lazy_flag 
+061f 247a0000 nrtn blank 
+0620 20404072 call mouse_dpi_ghost_check 
+0621 20740000 rtn user 
 
 p_mouse_dpi_process_next:
-0624 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0625 1fe0fe01 increase 1 ,pdata 
-0626 1fe17e03 and pdata ,0x03 ,pdata 
+0622 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0623 1fe0fe01 increase 1 ,pdata 
+0624 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0627 67e0c992 store 1 ,mem_mouse_dpi 
-0628 20400327 call p_mouse_seting_dpi 
-0629 704cbb02 jam 2 ,mem_mouse_dpi_store_delay_timer 
-062a 20600000 rtn 
+0625 67e0c992 store 1 ,mem_mouse_dpi 
+0626 20400327 call p_mouse_seting_dpi 
+0627 704cad02 jam 2 ,mem_mouse_dpi_store_delay_timer 
+0628 20600000 rtn 
 
 p_power_ctrl_start:
-062b 6fe1478c fetch 2 ,mem_ui_state_map 
-062c c3858000 rtnbit1 ui_state_ble_adv 
-062d c3838000 rtnbit1 ui_state_bt_reconnect 
-062e c3830000 rtnbit1 ui_state_bt_discovery 
-062f 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0630 204025cb call rssi_average 
-0631 6048c8c7 storet 1 ,mem_rssi_avg_received 
-0632 202026f6 branch power_ctrl_rssi_avg_compare 
+0629 6fe1478c fetch 2 ,mem_ui_state_map 
+062a c3858000 rtnbit1 ui_state_ble_adv 
+062b c3838000 rtnbit1 ui_state_bt_reconnect 
+062c c3830000 rtnbit1 ui_state_bt_discovery 
+062d 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+062e 204025cb call rssi_average 
+062f 6048c8c7 storet 1 ,mem_rssi_avg_received 
+0630 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/program/patch.prog	(revision 4572)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/program/patch.prog	(working copy)
@@ -6,9 +6,6 @@
 //define DOUBLE_DPI_KEY
 define LOGO_LED
 define S201X_SENSOR
-//define RGB_LED
-//define RGB_LED_MKEY
-//define RGB_LED_ON_AFTER_PAIR
 //define COMMBINATION_DPI
 //define G24_RETRANSMIT_DPI
 define LED_POWERON_BEFORE_CONN
@@ -443,12 +440,6 @@
 ifdef DPI_LED_AFTER_CONN
 	jam 0,mem_mouse_dpi_led_blink_enable
 endif
-	
-ifdef RGB_LED_ON_AFTER_PAIR
-	jam 1,mem_rgb_led_on_continue_1min_timeout_flag
-	call p_mouse_rgb_led_off_time_init
-endif
-
 ifdef COMMBINATION_DPI
 	jam 0,mem_mouse_commbination_dpi_check_enable
 endif
@@ -814,19 +805,11 @@
 /////////////////////////////////// g24 250Hz use lpm//////////////////////////////////////
 	
 p_mouse_app_enter_hibernate:	// 1.3mA hibernate after sensroe reset
-ifdef RGB_LED
-	fetch 1,mem_mouse_rgb_adc_no_power_flag
-	nrtn blank
-	jam 1,mem_mouse_rgb_adc_no_power_flag
-endif
 	setarg PAN_REG_CONFIG
 	call twspi_read
 	bbit1 3,mouse_app_enter_hibernate+3
 	call p_mouse_sensor_reset
 	call p_mouse_sensor_powerdown
-ifdef RGB_LED
-	branch p_mouse_rgb_led_off
-endif
 	branch mouse_app_enter_hibernate+3
 
 p_mouse_setgpio_hibernate:
@@ -976,9 +959,6 @@
 	branch mouse_bt_hid_handshake+3
 
 p_mouse_le_bb_event_connected:
-ifdef RGB_LED_ON_AFTER_PAIR
-	call p_mouse_rgb_led_on_check_next
-endif
 ifdef COMMBINATION_DPI
 	jam 1,mem_mouse_commbination_dpi_check_enable
 endif
@@ -987,9 +967,6 @@
 	
 p_mouse_bb_event_connected:
 	call mouse_no_data_timer_init
-ifdef RGB_LED_ON_AFTER_PAIR
-	call p_mouse_rgb_led_on_check_next
-endif
 ifdef COMMBINATION_DPI
 	jam 1,mem_mouse_commbination_dpi_check_enable
 endif
@@ -1034,9 +1011,6 @@
 	rtn
 	
 p_mouse_24g_pairing_complete:
-ifdef RGB_LED_ON_AFTER_PAIR
-	call p_mouse_rgb_led_on_check_next
-endif
 ifdef COMMBINATION_DPI
 	jam 1,mem_mouse_commbination_dpi_check_enable
 endif
@@ -1049,9 +1023,6 @@
 	branch mouse_24g_pairing_complete+2
 
 p_mouse_24g_attempt_success:
-ifdef RGB_LED_ON_AFTER_PAIR
-	call p_mouse_rgb_led_on_check_next
-endif
 ifdef COMMBINATION_DPI
 	jam 1,mem_mouse_commbination_dpi_check_enable
 endif
@@ -1102,11 +1073,6 @@
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL,mouse_24g_attempt_fail_enter_hibernate
 p_mouse_24g_hibernate_set:
-ifdef RGB_LED
-	set0 mark_24g,mark
-	branch p_mouse_rgb_led_off
-endif
-p_mouse_24g_hibernate_set_next:
 	jam 0,mem_24g_attempt_fail_flag
 	call g24_transmit_next_packet
 	setarg -1
@@ -1182,10 +1148,6 @@
 	branch g24_pair_init_param
 
 p_g24_dispatch:
-ifdef RGB_LED
-	fetch 1,mem_sensor_shutdown_flag
-	ncall p_mouse_enable_g24_mark,blank
-endif
 	bmark1 mark_24g_rxmode,g24_receive_dispatch
 p_g24_transmit_dispatch:
 	rtnmark0 mark_24g
@@ -1195,18 +1157,6 @@
 endif
 	branch g24_transmit_dispatch+2
 
-ifdef RGB_LED
-p_mouse_enable_g24_mark:
-	jam ON,mem_rgb_led_on_enable
-	call p_mouse_rgb_led_on_enable_timer_init
-	set1 mark_24g,mark
-	rtn
-p_mouse_rgb_led_on_enable_timer_init:	
-	jam OFF,mem_rgb_led_off_enable	//gpio ouput active 1s enable rgb led
-	jam 11,mem_rgb_led_on_enable_timer
-	rtn
-endif
-
 p_mouse_start_work:
 ifdef IC_DOWNLOAD_LIMIT
 	fetch 1,mem_lap
@@ -1409,12 +1359,7 @@
 ifdef LED_POWERON_BEFORE_CONN
 	call p_mouse_led_poweron_timer
 endif
-	
-ifdef RGB_LED
-	call p_mouse_rgb_led_off_enable_timer
-	call p_mouse_rgb_led_on_enable_timer
-	call p_mouse_rgb_led_on_timer
-endif
+
 ifdef LOGO_LED
 	call p_mouse_logo_led_on_timer
 endif
@@ -1531,88 +1476,6 @@
 	branch timer_single_step
 endif
 
-ifdef RGB_LED
-/**************************rgb led start************************/
-/*********************
-****rgb on--mbutton output active 1s****
-****rgb off--mbutton output active 3s****
-**********************/
-p_mouse_rgb_led_off:
-	jam 0,mem_rgb_led_on_continue_1min_timeout_flag
-	branch p_mouse_rgb_led_off_time_init
-	
-p_mouse_rgb_led_off_enable_timer:
-	fetch 1,mem_rgb_led_off_enable
-	rtn blank
-	arg mem_rgb_led_off_enable_timer,regc
-	arg p_mouse_rgb_led_off_timeout,regb
-	branch timer_single_step
-
-p_mouse_rgb_led_off_timeout:
-	call p_mouse_mbutton_function_enable
-	fetch 1,mem_rgb_led_on_continue_1min_timeout_flag
-	nrtn blank
-	jam 0,mem_rgb_led_on_continue_1min_timeout_flag
-	fetch 1,mem_device_flag
-	beq MODE_24G_DEVICE,p_mouse_24g_hibernate_set_next
-	branch mouse_app_enter_hibernate+3
-	
-p_mouse_rgb_led_off_time_init:
-	jam 0x1e,mem_rgb_led_off_enable_timer
-	jam ON,mem_rgb_led_off_enable
-p_mouse_mbutton_function_disable:
-ifdef RGB_LED_MKEY
-	jam ON,mem_mbutton_function_disable
-endif
-	fetcht 1,mem_mouse_rgb_ctrl_gpio
-	branch p_mouse_multi_led_on
-
-p_mouse_rgb_led_on_enable_timer:
-	fetch 1,mem_rgb_led_off_enable
-	nrtn blank
-	fetch 1,mem_rgb_led_on_enable_timer
-	rtn blank
-	beq 1,p_mouse_rgb_led_enable_timeout
-	increase -1,pdata
-	store 1,mem_rgb_led_on_enable_timer
-	branch p_mouse_mbutton_function_disable
-
-p_mouse_rgb_led_enable_timeout:
-	jam 0,mem_rgb_led_on_enable_timer
-p_mouse_mbutton_function_enable:
-ifdef RGB_LED_MKEY
-	jam OFF,mem_mbutton_function_disable
-endif
-	fetcht 1,mem_mouse_rgb_ctrl_gpio
-	call p_mouse_multi_led_on
-ifdef RGB_LED_MKEY
-	nop 12000
-	fetcht 1,mem_mouse_rgb_ctrl_gpio
-	call mouse_gpio_config_input_pu
-endif
-	rtn
-
-p_mouse_rgb_led_on_timer:
-	fetch 1,mem_rgb_led_on_enable
-	nrtn blank
-	fetch 1,mem_rgb_led_off_enable
-	nrtn blank
-p_mouse_rgb_led_on:
-	fetch 2,mem_rgb_led_on_timer
-	increase 1,pdata
-	store 2,mem_rgb_led_on_timer
-	arg 0x0258,temp	//1min
-	isub temp,null
-	call p_mouse_rgb_led_on_continue_1min,zero
-	rtn
-
-p_mouse_rgb_led_on_continue_1min:
-	jam 1,mem_rgb_led_on_continue_1min_timeout_flag
-	call p_mouse_rgb_led_on_timer_init
-	branch p_mouse_rgb_led_off_time_init
-
-endif
-
 //================led multi start===================//
 
 //===multi led parm init===//
@@ -2170,11 +2033,8 @@
 	fetch 1,mem_mouse_key
 	and_into 0x1f,pdata
 	store 1,mem_mouse_key
-	nbranch p_mouse_motion_nodata,user
+	nbranch mouse_drawing_optima_init,user
 	call p_mouse_drawing_optima
-ifdef RGB_LED
-	call p_mouse_rgb_led_on_check
-endif
 	branch mouse_no_data_timer_init
 
 p_mouse_start_lazy_check:
@@ -2183,7 +2043,7 @@
 	arg 13,queue
 	call timer_check
 	nrtn blank
-	//call p_mouse_start_lazy_start #阶梯型摸鱼算法
+	//call p_mouse_start_lazy_start 
 	call p_mouse_auto_ruling_check
 p_mouse_fake_data_100ms_timer_init:
 	arg 13,queue
@@ -2370,48 +2230,11 @@
 // 	jam 0,mem_mouse_y_count
 // 	branch p_ms_y_down
 
-
-p_mouse_motion_nodata:	
-	call mouse_drawing_optima_init
-ifdef RGB_LED
-	fetch 2,mem_rgb_led_off_check_count
-	increase 1,pdata
-	store 2,mem_rgb_led_off_check_count
-	arg 0x0258,temp
-	isub temp,null
-	nrtn zero
-	setarg 0
-	store 2,mem_rgb_led_off_check_count
-	jam OFF,mem_rgb_led_on_enable
-endif
-	rtn
-
 p_mouse_drawing_optima:
 	fetch 1,mem_config_sensor_type
 	rtneq P3212
 	branch mouse_drawing_optima
 
-ifdef RGB_LED
-p_mouse_rgb_led_on_check:
-	fetch 2,mem_rgb_led_on_check_count
-	increase 1,pdata
-	store 2,mem_rgb_led_on_check_count
-	arg 0x0258,temp
-	isub temp,null
-	nrtn zero
-	setarg 0
-	store 2,mem_rgb_led_on_check_count
-	fetch 1,mem_rgb_led_on_enable
-	rtneq ON
-p_mouse_rgb_led_on_check_next:
-	jam ON,mem_rgb_led_on_enable
-	jam OFF,mem_rgb_led_off_enable
-	jam 11,mem_rgb_led_on_enable_timer
-p_mouse_rgb_led_on_timer_init:
-	setarg 0
-	store 2,mem_rgb_led_on_timer
-	rtn
-endif
 p_mouse_sensor_poweron:
 	call mouse_sensor_spi_init
 	fetch 1,mem_config_sensor_type
@@ -2486,10 +2309,6 @@
 	fetcht 1,mem_rbutton_gpio
 	branch mouse_gpio_config_input_pu
 p_mouse_check_mkey_gpio:
-ifdef RGB_LED_MKEY
-	fetch 1,mem_mbutton_function_disable
-	nrtn blank
-endif
 	fetch 1,mem_mbutton_gpio
 	rtneq GPIO_DISABLE
 	jam MOUSE_M_KEY,mem_mouse_key_temp
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/sched/mouse.dat	(revision 4572)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_LBX _172_Lazy/sched/mouse.dat	(working copy)
@@ -146,7 +146,6 @@
 mem_dpi_led_gpio:ff #03
 mem_firebutton_gpio:ff
 
-mem_mouse_rgb_ctrl_gpio:ff
 mem_sensor_angle_default:03	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_sensor_angle_switch:00	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_config_sensor_dpi:00		#00--1200   01--1600
