Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/eeprom.dat	(revision 1925)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-5a
+56
 19
 c2
 84
@@ -83,7 +83,7 @@
 c0
 67
 86
-1e
+1d
 c0
 68
 03
@@ -195,7 +195,7 @@
 c0
 76
 86
-4e
+4d
 20
 20
 13
@@ -3381,9 +3381,9 @@
 00
 00
 70
-48
-8b
+4c
 43
+01
 20
 40
 04
@@ -4290,8 +4290,8 @@
 04
 24
 41
-49
-02
+04
+36
 60
 48
 cc
@@ -5807,7 +5807,7 @@
 20
 40
 05
-dd
+dc
 20
 20
 46
@@ -5965,9 +5965,9 @@
 27
 0c
 20
-20
-46
-ee
+60
+00
+00
 70
 49
 27
@@ -5983,7 +5983,7 @@
 20
 40
 05
-db
+da
 da
 60
 4c
@@ -5993,10 +5993,6 @@
 42
 2b
 20
-40
-46
-ee
-20
 20
 03
 0f
@@ -6023,7 +6019,7 @@
 24
 3a
 05
-e6
+e5
 6f
 e0
 cc
@@ -6035,7 +6031,7 @@
 20
 40
 05
-f6
+f5
 68
 48
 cc
@@ -6075,11 +6071,11 @@
 20
 40
 06
-0f
+0e
 20
 40
 05
-fa
+f9
 68
 48
 cc
@@ -6123,7 +6119,7 @@
 20
 40
 06
-05
+04
 67
 e0
 cc
@@ -6135,7 +6131,7 @@
 20
 3a
 06
-01
+00
 6f
 e0
 cc
@@ -6199,11 +6195,11 @@
 c0
 03
 86
-1a
+19
 c0
 00
 06
-1c
+1b
 20
 60
 00
@@ -6243,11 +6239,11 @@
 c0
 03
 86
-1a
+19
 c0
 00
 06
-1c
+1b
 20
 60
 00
@@ -6291,7 +6287,7 @@
 c2
 9e
 86
-2a
+29
 18
 42
 7e
@@ -6323,7 +6319,7 @@
 24
 3a
 06
-47
+46
 6f
 e4
 4b
@@ -6331,7 +6327,7 @@
 c2
 8e
 06
-3b
+3a
 18
 42
 7e
@@ -6343,11 +6339,11 @@
 c0
 00
 06
-37
+36
 c0
 01
 06
-35
+34
 20
 60
 00
@@ -6359,7 +6355,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6367,7 +6363,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6375,7 +6371,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6383,7 +6379,7 @@
 20
 20
 06
-27
+26
 18
 42
 7e
@@ -6395,15 +6391,15 @@
 c0
 00
 06
-37
+36
 c0
 01
 06
-39
+38
 c0
 01
 86
-35
+34
 20
 60
 00
@@ -6419,15 +6415,15 @@
 c0
 00
 06
-39
+38
 c0
 00
 86
-35
+34
 c0
 01
 86
-33
+32
 20
 60
 00
@@ -6439,7 +6435,7 @@
 c2
 8e
 06
-41
+40
 18
 42
 7e
@@ -6451,11 +6447,11 @@
 c0
 00
 06
-33
+32
 c0
 00
 86
-35
+34
 20
 60
 00
@@ -6492,8 +6488,8 @@
 20
 26
 f6
-ad
-dc
+e2
+06
 aa
 55
 40
@@ -7851,16 +7847,16 @@
 02
 40
 00
-b8
+b4
 1e
 55
 aa
 aa
 55
-ca
+c6
 8d
-3d
-5b
+f2
+b9
 ff
 ff
 ff
@@ -8188,5 +8184,9 @@
 ff
 ff
 ff
-a4
-b0
+ff
+ff
+ff
+ff
+47
+b7
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/flash.dat	(revision 1925)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-5a
+56
 19
 c2
 84
@@ -83,7 +83,7 @@
 c0
 67
 86
-1e
+1d
 c0
 68
 03
@@ -195,7 +195,7 @@
 c0
 76
 86
-4e
+4d
 20
 20
 13
@@ -3381,9 +3381,9 @@
 00
 00
 70
-48
-8b
+4c
 43
+01
 20
 40
 04
@@ -4290,8 +4290,8 @@
 04
 24
 41
-49
-02
+04
+36
 60
 48
 cc
@@ -5807,7 +5807,7 @@
 20
 40
 05
-dd
+dc
 20
 20
 46
@@ -5965,9 +5965,9 @@
 27
 0c
 20
-20
-46
-ee
+60
+00
+00
 70
 49
 27
@@ -5983,7 +5983,7 @@
 20
 40
 05
-db
+da
 da
 60
 4c
@@ -5993,10 +5993,6 @@
 42
 2b
 20
-40
-46
-ee
-20
 20
 03
 0f
@@ -6023,7 +6019,7 @@
 24
 3a
 05
-e6
+e5
 6f
 e0
 cc
@@ -6035,7 +6031,7 @@
 20
 40
 05
-f6
+f5
 68
 48
 cc
@@ -6075,11 +6071,11 @@
 20
 40
 06
-0f
+0e
 20
 40
 05
-fa
+f9
 68
 48
 cc
@@ -6123,7 +6119,7 @@
 20
 40
 06
-05
+04
 67
 e0
 cc
@@ -6135,7 +6131,7 @@
 20
 3a
 06
-01
+00
 6f
 e0
 cc
@@ -6199,11 +6195,11 @@
 c0
 03
 86
-1a
+19
 c0
 00
 06
-1c
+1b
 20
 60
 00
@@ -6243,11 +6239,11 @@
 c0
 03
 86
-1a
+19
 c0
 00
 06
-1c
+1b
 20
 60
 00
@@ -6291,7 +6287,7 @@
 c2
 9e
 86
-2a
+29
 18
 42
 7e
@@ -6323,7 +6319,7 @@
 24
 3a
 06
-47
+46
 6f
 e4
 4b
@@ -6331,7 +6327,7 @@
 c2
 8e
 06
-3b
+3a
 18
 42
 7e
@@ -6343,11 +6339,11 @@
 c0
 00
 06
-37
+36
 c0
 01
 06
-35
+34
 20
 60
 00
@@ -6359,7 +6355,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6367,7 +6363,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6375,7 +6371,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6383,7 +6379,7 @@
 20
 20
 06
-27
+26
 18
 42
 7e
@@ -6395,15 +6391,15 @@
 c0
 00
 06
-37
+36
 c0
 01
 06
-39
+38
 c0
 01
 86
-35
+34
 20
 60
 00
@@ -6419,15 +6415,15 @@
 c0
 00
 06
-39
+38
 c0
 00
 86
-35
+34
 c0
 01
 86
-33
+32
 20
 60
 00
@@ -6439,7 +6435,7 @@
 c2
 8e
 06
-41
+40
 18
 42
 7e
@@ -6451,11 +6447,11 @@
 c0
 00
 06
-33
+32
 c0
 00
 86
-35
+34
 20
 60
 00
@@ -6492,8 +6488,8 @@
 20
 26
 f6
-ad
-dc
+e2
+06
 aa
 55
 40
@@ -7851,16 +7847,16 @@
 02
 40
 00
-b8
+b4
 1e
 55
 aa
 aa
 55
-ca
+c6
 8d
-3d
-5b
+f2
+b9
 ff
 ff
 ff
@@ -8188,5 +8184,9 @@
 ff
 ff
 ff
-a4
-b0
+ff
+ff
+ff
+ff
+47
+b7
Index: output/otp.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/otp.dat	(revision 1925)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/otp.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-5a
+56
 19
 c2
 84
@@ -83,7 +83,7 @@
 c0
 67
 86
-1e
+1d
 c0
 68
 03
@@ -195,7 +195,7 @@
 c0
 76
 86
-4e
+4d
 20
 20
 13
@@ -3381,9 +3381,9 @@
 00
 00
 70
-48
-8b
+4c
 43
+01
 20
 40
 04
@@ -4290,8 +4290,8 @@
 04
 24
 41
-49
-02
+04
+36
 60
 48
 cc
@@ -5807,7 +5807,7 @@
 20
 40
 05
-dd
+dc
 20
 20
 46
@@ -5965,9 +5965,9 @@
 27
 0c
 20
-20
-46
-ee
+60
+00
+00
 70
 49
 27
@@ -5983,7 +5983,7 @@
 20
 40
 05
-db
+da
 da
 60
 4c
@@ -5993,10 +5993,6 @@
 42
 2b
 20
-40
-46
-ee
-20
 20
 03
 0f
@@ -6023,7 +6019,7 @@
 24
 3a
 05
-e6
+e5
 6f
 e0
 cc
@@ -6035,7 +6031,7 @@
 20
 40
 05
-f6
+f5
 68
 48
 cc
@@ -6075,11 +6071,11 @@
 20
 40
 06
-0f
+0e
 20
 40
 05
-fa
+f9
 68
 48
 cc
@@ -6123,7 +6119,7 @@
 20
 40
 06
-05
+04
 67
 e0
 cc
@@ -6135,7 +6131,7 @@
 20
 3a
 06
-01
+00
 6f
 e0
 cc
@@ -6199,11 +6195,11 @@
 c0
 03
 86
-1a
+19
 c0
 00
 06
-1c
+1b
 20
 60
 00
@@ -6243,11 +6239,11 @@
 c0
 03
 86
-1a
+19
 c0
 00
 06
-1c
+1b
 20
 60
 00
@@ -6291,7 +6287,7 @@
 c2
 9e
 86
-2a
+29
 18
 42
 7e
@@ -6323,7 +6319,7 @@
 24
 3a
 06
-47
+46
 6f
 e4
 4b
@@ -6331,7 +6327,7 @@
 c2
 8e
 06
-3b
+3a
 18
 42
 7e
@@ -6343,11 +6339,11 @@
 c0
 00
 06
-37
+36
 c0
 01
 06
-35
+34
 20
 60
 00
@@ -6359,7 +6355,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6367,7 +6363,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6375,7 +6371,7 @@
 20
 20
 06
-27
+26
 58
 00
 00
@@ -6383,7 +6379,7 @@
 20
 20
 06
-27
+26
 18
 42
 7e
@@ -6395,15 +6391,15 @@
 c0
 00
 06
-37
+36
 c0
 01
 06
-39
+38
 c0
 01
 86
-35
+34
 20
 60
 00
@@ -6419,15 +6415,15 @@
 c0
 00
 06
-39
+38
 c0
 00
 86
-35
+34
 c0
 01
 86
-33
+32
 20
 60
 00
@@ -6439,7 +6435,7 @@
 c2
 8e
 06
-41
+40
 18
 42
 7e
@@ -6451,11 +6447,11 @@
 c0
 00
 06
-33
+32
 c0
 00
 86
-35
+34
 20
 60
 00
@@ -6492,8 +6488,8 @@
 20
 26
 f6
-ad
-dc
+e2
+06
 aa
 55
 40
@@ -7851,13 +7847,13 @@
 03
 01
 00
-b8
+b4
 1e
 55
 aa
 aa
 55
-8c
+88
 8d
-5f
-27
+19
+6c
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/program.lis	(revision 1925)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/program.lis	(working copy)
@@ -19,7 +19,7 @@
 0010 c0650236 beq patch19_2 ,p_mouse_lpm_before_common 
 0011 c06600ca beq patch19_4 ,p_mouse_adc_read_start 
 0012 c0670506 beq patch19_6 ,p_mouse_motion 
-0013 c067861e beq patch19_7 ,p_mouse_dpi_process 
+0013 c067861d beq patch19_7 ,p_mouse_dpi_process 
 0014 c068030d beq patch1a_0 ,p_mouse_seting_dpi 
 0015 c06985c3 beq patch1a_3 ,p_mouse_init_sunt 
 0016 c068856f beq patch1a_1 ,p_mouse_check_key_gpio 
@@ -49,7 +49,7 @@
 002c c07482cd beq patch3d_1 ,p_g24_reconn_dispatch 
 002d c0750193 beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002e c07604f9 beq patch3d_4 ,p_g24_lpm_wait 
-002f c076864e beq patch3d_5 ,p_power_ctrl_start 
+002f c076864d beq patch3d_5 ,p_power_ctrl_start 
 0030 2020137c branch loop 
 
 p_lpm_dispatch:
@@ -1106,7 +1106,7 @@
 0349 247a0000 nrtn blank 
 034a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 034b c4020000 rtnbit0 mouse_low_voltage_flag 
-034c 70488b43 jam mem_mouse_multi_led_type 
+034c 704c4301 jam 1 ,mem_mouse_multi_led_type 
 034d 20400455 call p_mouse_judge_current_mode_select_dpi_or_low_led 
 034e 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
 034f 1fe0fe01 increase 1 ,pdata 
@@ -1437,7 +1437,7 @@
 042c c40e0000 rtnbit0 mouse_enable_dpi_level_4 
 042d 18408401 increase 1 ,temp 
 042e 18467c04 sub temp ,4 ,null 
-042f 24414902 ncall mouse_dpi_led_blink_count_clean ,positive 
+042f 24410436 ncall p_mouse_dpi_led_blink_count_clean ,positive 
 0430 6048cca0 storet 1 ,mem_dpi_blink_count 
 0431 20600000 rtn 
 
@@ -1968,7 +1968,7 @@
 05a7 204005ac call p_mouse_low_voltage_led_no_enter_lpm 
 05a8 20407936 call ui_check_paring_button 
 05a9 204005af call p_mouse_dpi_check 
-05aa 204005dd call p_mouse_dpi_another_gpio_check 
+05aa 204005dc call p_mouse_dpi_another_gpio_check 
 05ab 2020464f branch mouse_idle + 4 
 
 p_mouse_low_voltage_led_no_enter_lpm:
@@ -2026,196 +2026,195 @@
 
 p_mouse_om16_init_param:
 05d1 7049270c jam om16 ,mem_config_sensor_type 
-05d2 202046ee branch mouse_dpi_4level_enable 
+05d2 20600000 rtn 
 
 p_mouse_om18_init_param:
 05d3 7049270d jam om18 ,mem_config_sensor_type 
 05d4 58008006 setarg 0x8006 
 05d5 20405b0c call twspi_write 
-05d6 204005db call p_delay_15ms 
+05d6 204005da call p_delay_15ms 
 05d7 da604cac arg mem_sensor_om18_init ,regc 
 05d8 2040422b call mouse_sensor_wr_seq 
-05d9 204046ee call mouse_dpi_4level_enable 
-05da 2020030f branch p_mouse_seting_sensor_type 
+05d9 2020030f branch p_mouse_seting_sensor_type 
 
 p_delay_15ms:
-05db df20000f arg 15 ,loopcnt 
-05dc 20207d13 branch delay_ms_wait 
+05da df20000f arg 15 ,loopcnt 
+05db 20207d13 branch delay_ms_wait 
 
 p_mouse_dpi_another_gpio_check:
-05dd 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05de c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-05df 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-05e0 243a05e6 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+05dc 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05dd c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+05de 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+05df 243a05e5 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-05e1 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-05e2 204005a1 call p_mouse_gpio_config_output_high 
-05e3 204005f6 call p_mouse_dpi_another_check 
-05e4 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05e5 20203f56 branch mouse_gpio_config_input_pu 
+05e0 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+05e1 204005a1 call p_mouse_gpio_config_output_high 
+05e2 204005f5 call p_mouse_dpi_another_check 
+05e3 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05e4 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-05e6 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-05e7 793ffe07 set0 gpio_active_bit ,pdata 
-05e8 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-05e9 204005a4 call p_mouse_gpio_config_output_low 
-05ea 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-05eb 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05ec 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-05ed 2040060f call p_mouse_check_key_connect_vin_new 
-05ee 204005fa call p_mouse_dpi_another_state_check 
-05ef 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05f0 20203f56 branch mouse_gpio_config_input_pu 
+05e5 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+05e6 793ffe07 set0 gpio_active_bit ,pdata 
+05e7 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+05e8 204005a4 call p_mouse_gpio_config_output_low 
+05e9 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+05ea 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05eb 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+05ec 2040060e call p_mouse_check_key_connect_vin_new 
+05ed 204005f9 call p_mouse_dpi_another_state_check 
+05ee 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05ef 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-05f1 20403f56 call mouse_gpio_config_input_pu 
-05f2 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-05f3 c1008000 rtneq dpi_button_state_down 
-05f4 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-05f5 20204069 branch mouse_dpi_process 
+05f0 20403f56 call mouse_gpio_config_input_pu 
+05f1 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+05f2 c1008000 rtneq dpi_button_state_down 
+05f3 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+05f4 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-05f6 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-05f7 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05f8 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-05f9 20400605 call p_mouse_check_key_connect_gnd_new 
+05f5 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+05f6 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+05f7 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+05f8 20400604 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-05fa 67e0cc3c store 1 ,mem_dpi_another_press_status 
-05fb 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-05fc 203a0601 branch p_mouse_dpi_another_up ,blank 
+05f9 67e0cc3c store 1 ,mem_dpi_another_press_status 
+05fa 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+05fb 203a0600 branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-05fd 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-05fe c1008000 rtneq dpi_button_state_down 
-05ff 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0600 20204069 branch mouse_dpi_process 
+05fc 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+05fd c1008000 rtneq dpi_button_state_down 
+05fe 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+05ff 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-0601 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0602 c1000000 rtneq dpi_button_state_up 
-0603 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-0604 20600000 rtn 
+0600 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0601 c1000000 rtneq dpi_button_state_up 
+0602 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0603 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-0605 1fe3fe00 lshift pdata ,pdata 
-0606 1fe22400 copy pdata ,regb 
-0607 20406059 call gpio_get_bit 
-0608 7920a400 setflag true ,0 ,regb 
-0609 1a417e07 and regb ,0x07 ,pdata 
-060a 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-060b 18420e00 copy temp ,queue 
-060c c003861a beq 0x07 ,p_mouse_key_press 
-060d c000061c beq 0x00 ,p_mouse_key_release 
-060e 20600000 rtn 
+0604 1fe3fe00 lshift pdata ,pdata 
+0605 1fe22400 copy pdata ,regb 
+0606 20406059 call gpio_get_bit 
+0607 7920a400 setflag true ,0 ,regb 
+0608 1a417e07 and regb ,0x07 ,pdata 
+0609 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+060a 18420e00 copy temp ,queue 
+060b c0038619 beq 0x07 ,p_mouse_key_press 
+060c c000061b beq 0x00 ,p_mouse_key_release 
+060d 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-060f 1fe3fe00 lshift pdata ,pdata 
-0610 1fe22400 copy pdata ,regb 
-0611 20403f54 call mouse_gpio_config_input_pd 
-0612 20406059 call gpio_get_bit 
-0613 7920a400 setflag true ,0 ,regb 
-0614 1a417e07 and regb ,0x07 ,pdata 
-0615 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0616 18420e00 copy temp ,queue 
-0617 c003861a beq 0x07 ,p_mouse_key_press 
-0618 c000061c beq 0x00 ,p_mouse_key_release 
-0619 20600000 rtn 
+060e 1fe3fe00 lshift pdata ,pdata 
+060f 1fe22400 copy pdata ,regb 
+0610 20403f54 call mouse_gpio_config_input_pd 
+0611 20406059 call gpio_get_bit 
+0612 7920a400 setflag true ,0 ,regb 
+0613 1a417e07 and regb ,0x07 ,pdata 
+0614 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0615 18420e00 copy temp ,queue 
+0616 c0038619 beq 0x07 ,p_mouse_key_press 
+0617 c000061b beq 0x00 ,p_mouse_key_release 
+0618 20600000 rtn 
 
 p_mouse_key_press:
-061a 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-061b 20600000 rtn 
+0619 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+061a 20600000 rtn 
 
 p_mouse_key_release:
-061c 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-061d 20600000 rtn 
+061b 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+061c 20600000 rtn 
 
 p_mouse_dpi_process:
-061e 20404072 call mouse_dpi_ghost_check 
-061f 20740000 rtn user 
-0620 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0621 1fe20400 copy pdata ,temp 
-0622 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0623 c29e862a bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-0624 18427e00 copy temp ,pdata 
-0625 1fe0fe01 increase 1 ,pdata 
-0626 1fe17e03 and pdata ,0x03 ,pdata 
+061d 20404072 call mouse_dpi_ghost_check 
+061e 20740000 rtn user 
+061f 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0620 1fe20400 copy pdata ,temp 
+0621 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0622 c29e8629 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+0623 18427e00 copy temp ,pdata 
+0624 1fe0fe01 increase 1 ,pdata 
+0625 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0627 67e0c992 store 1 ,mem_mouse_dpi 
-0628 20404095 call mouse_seting_dpi 
-0629 202045ee branch mouse_store_device_info_delay 
+0626 67e0c992 store 1 ,mem_mouse_dpi 
+0627 20404095 call mouse_seting_dpi 
+0628 202045ee branch mouse_store_device_info_delay 
 
 p_mouse_double_dpi_check:
-062a 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-062b 243a0647 nbranch p_mouse_another_dpi_button_down ,blank 
+0629 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+062a 243a0646 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-062c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-062d c28e063b bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-062e 18427e00 copy temp ,pdata 
-062f c1008000 rtneq mouse_dpi_level2 
+062b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+062c c28e063a bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+062d 18427e00 copy temp ,pdata 
+062e c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-0630 c0000637 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0631 c0010635 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-0632 20600000 rtn 
+062f c0000636 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+0630 c0010634 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+0631 20600000 rtn 
 
 p_mouse_dpi_level_1:
-0633 58000002 setarg 2 
-0634 20200627 branch p_mouse_dpi_store 
+0632 58000002 setarg 2 
+0633 20200626 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-0635 58000000 setarg 0 
-0636 20200627 branch p_mouse_dpi_store 
+0634 58000000 setarg 0 
+0635 20200626 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-0637 58000001 setarg 1 
-0638 20200627 branch p_mouse_dpi_store 
+0636 58000001 setarg 1 
+0637 20200626 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-0639 58000003 setarg 3 
-063a 20200627 branch p_mouse_dpi_store 
+0638 58000003 setarg 3 
+0639 20200626 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-063b 18427e00 copy temp ,pdata 
-063c c1008000 rtneq mouse_dpi_level2 
-063d c0000637 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-063e c0010639 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-063f c0018635 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-0640 20600000 rtn 
+063a 18427e00 copy temp ,pdata 
+063b c1008000 rtneq mouse_dpi_level2 
+063c c0000636 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+063d c0010638 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+063e c0018634 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+063f 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-0641 18427e00 copy temp ,pdata 
-0642 c1010000 rtneq mouse_dpi_level3 
-0643 c0000639 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-0644 c0008635 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-0645 c0018633 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-0646 20600000 rtn 
+0640 18427e00 copy temp ,pdata 
+0641 c1010000 rtneq mouse_dpi_level3 
+0642 c0000638 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+0643 c0008634 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+0644 c0018632 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+0645 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-0647 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0648 c28e0641 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-0649 18427e00 copy temp ,pdata 
-064a c1010000 rtneq mouse_dpi_level3 
+0646 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0647 c28e0640 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+0648 18427e00 copy temp ,pdata 
+0649 c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-064b c0000633 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-064c c0008635 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-064d 20600000 rtn 
+064a c0000632 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+064b c0008634 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+064c 20600000 rtn 
 
 p_power_ctrl_start:
-064e 6fe1478c fetch 2 ,mem_ui_state_map 
-064f c3858000 rtnbit1 ui_state_ble_adv 
-0650 c3838000 rtnbit1 ui_state_bt_reconnect 
-0651 c3830000 rtnbit1 ui_state_bt_discovery 
-0652 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0653 204025cb call rssi_average 
-0654 6048c8c7 storet 1 ,mem_rssi_avg_received 
-0655 202026f6 branch power_ctrl_rssi_avg_compare 
+064d 6fe1478c fetch 2 ,mem_ui_state_map 
+064e c3858000 rtnbit1 ui_state_ble_adv 
+064f c3838000 rtnbit1 ui_state_bt_reconnect 
+0650 c3830000 rtnbit1 ui_state_bt_discovery 
+0651 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+0652 204025cb call rssi_average 
+0653 6048c8c7 storet 1 ,mem_rssi_avg_received 
+0654 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/ramcode.rom	(revision 1925)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/output/ramcode.rom	(working copy)
@@ -17,7 +17,7 @@
 c0650236
 c06600ca
 c0670506
-c067861e
+c067861d
 c068030d
 c06985c3
 c068856f
@@ -45,7 +45,7 @@
 c07482cd
 c0750193
 c07604f9
-c076864e
+c076864d
 2020137c
 6fe0cc43
 c1008000
@@ -842,7 +842,7 @@
 247a0000
 6fe44bab
 c4020000
-70488b43
+704c4301
 20400455
 6fe0c8f8
 1fe0fe01
@@ -1069,7 +1069,7 @@
 c40e0000
 18408401
 18467c04
-24414902
+24410436
 6048cca0
 20600000
 6fe44bab
@@ -1448,7 +1448,7 @@
 204005ac
 20407936
 204005af
-204005dd
+204005dc
 2020464f
 6fe44bab
 c4020000
@@ -1488,24 +1488,23 @@
 c02905d1
 202041bd
 7049270c
-202046ee
+20600000
 7049270d
 58008006
 20405b0c
-204005db
+204005da
 da604cac
 2040422b
-204046ee
 2020030f
 df20000f
 20207d13
 6fe44bab
 c41e8000
 6fe0cc3a
-243a05e6
+243a05e5
 6fe0cc3b
 204005a1
-204005f6
+204005f5
 6848cc3b
 20203f56
 6fe0cc3b
@@ -1515,8 +1514,8 @@
 704c3f00
 6848cc3b
 6fe0cc3c
-2040060f
-204005fa
+2040060e
+204005f9
 6848cc3b
 20203f56
 20403f56
@@ -1527,10 +1526,10 @@
 704c3f00
 6848cc3b
 6fe0cc3c
-20400605
+20400604
 67e0cc3c
 6fe0cc3e
-203a0601
+203a0600
 6fe0cc3d
 c1008000
 704c3d01
@@ -1546,8 +1545,8 @@
 1a417e07
 6848cc3f
 18420e00
-c003861a
-c000061c
+c0038619
+c000061b
 20600000
 1fe3fe00
 1fe22400
@@ -1557,8 +1556,8 @@
 1a417e07
 6848cc3f
 18420e00
-c003861a
-c000061c
+c0038619
+c000061b
 20600000
 704c3e01
 20600000
@@ -1569,7 +1568,7 @@
 6fe0c992
 1fe20400
 6fe44bab
-c29e862a
+c29e8629
 18427e00
 1fe0fe01
 1fe17e03
@@ -1577,40 +1576,40 @@
 20404095
 202045ee
 6fe0cc3e
-243a0647
+243a0646
 6fe44bab
-c28e063b
+c28e063a
 18427e00
 c1008000
-c0000637
-c0010635
+c0000636
+c0010634
 20600000
 58000002
-20200627
+20200626
 58000000
-20200627
+20200626
 58000001
-20200627
+20200626
 58000003
-20200627
+20200626
 18427e00
 c1008000
-c0000637
-c0010639
-c0018635
+c0000636
+c0010638
+c0018634
 20600000
 18427e00
 c1010000
-c0000639
-c0008635
-c0018633
+c0000638
+c0008634
+c0018632
 20600000
 6fe44bab
-c28e0641
+c28e0640
 18427e00
 c1010000
-c0000633
-c0008635
+c0000632
+c0008634
 20600000
 6fe1478c
 c3858000
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/program/patch.prog	(revision 1925)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/lexiang/mouse_public_sdk/program/patch.prog	(working copy)
@@ -1233,7 +1233,7 @@
 	nrtn blank
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	rtnbit0 MOUSE_LOW_VOLTAGE_FLAG
-	jam 1.mem_mouse_multi_led_type
+	jam 1,mem_mouse_multi_led_type
 	call p_mouse_judge_current_mode_select_dpi_or_low_led
 	fetch 1,mem_adc_low_volatage_led_timer_count
 	increase 1,pdata
@@ -1593,7 +1593,7 @@
 	rtnbit0 MOUSE_ENABLE_DPI_LEVEL_4
 	increase 1,temp
 	sub temp,4,null
-	ncall mouse_dpi_led_blink_count_clean,positive	// blink count:2 3 4 1
+	ncall p_mouse_dpi_led_blink_count_clean,positive	// blink count:2 3 4 1
 	storet 1,mem_dpi_blink_count
 	rtn
 
@@ -2289,7 +2289,8 @@
 */
 p_mouse_om16_init_param:
 	jam OM16,mem_config_sensor_type
-	branch mouse_dpi_4level_enable
+	//branch mouse_dpi_4level_enable
+	rtn
 
 p_mouse_om18_init_param:
 	jam OM18,mem_config_sensor_type
@@ -2298,7 +2299,7 @@
 	call p_delay_15ms
 	arg mem_sensor_om18_init,regc
 	call mouse_sensor_wr_seq
-	call mouse_dpi_4level_enable
+	//call mouse_dpi_4level_enable
 	branch p_mouse_seting_sensor_type
 
 p_delay_15ms:
