Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(revision 501)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-5a
+5e
 04
 c2
 84
@@ -15,7 +15,7 @@
 c0
 45
 01
-10
+11
 c0
 45
 80
@@ -47,7 +47,7 @@
 c0
 68
 00
-cf
+d0
 c0
 6b
 00
@@ -55,7 +55,7 @@
 c0
 6c
 80
-e0
+e1
 20
 20
 13
@@ -63,7 +63,7 @@
 c0
 10
 81
-0e
+0f
 20
 20
 13
@@ -471,7 +471,7 @@
 20
 40
 01
-13
+14
 20
 20
 12
@@ -535,7 +535,7 @@
 20
 40
 00
-f2
+f3
 20
 20
 3e
@@ -750,6 +750,10 @@
 40
 20
 40
+40
+8e
+20
+40
 3f
 7e
 20
@@ -775,7 +779,7 @@
 24
 34
 00
-c4
+c5
 20
 40
 47
@@ -783,7 +787,7 @@
 20
 40
 00
-c7
+c8
 20
 20
 45
@@ -839,7 +843,7 @@
 20
 40
 00
-d2
+d3
 20
 20
 40
@@ -891,7 +895,7 @@
 20
 3a
 00
-f9
+fa
 67
 e0
 cb
@@ -927,11 +931,11 @@
 20
 40
 00
-f6
+f7
 20
 40
 00
-e9
+ea
 20
 20
 44
@@ -967,7 +971,7 @@
 da
 40
 00
-f2
+f3
 20
 20
 31
@@ -995,7 +999,7 @@
 da
 40
 00
-f9
+fa
 20
 20
 31
@@ -1051,11 +1055,11 @@
 20
 41
 01
-08
+09
 24
 41
 01
-0c
+0d
 20
 20
 48
@@ -1099,7 +1103,7 @@
 c0
 4f
 81
-13
+14
 20
 20
 12
@@ -1116,8 +1120,8 @@
 20
 12
 2a
-24
-77
+14
+a5
 aa
 55
 40
@@ -1262,7 +1266,7 @@
 4b
 04
 08
-6a
+4a
 00
 00
 80
@@ -1297,7 +1301,7 @@
 0b
 08
 ff
-08
+ff
 04
 05
 ff
@@ -2279,12 +2283,8 @@
 e8
 41
 01
-3f
-86
-ff
-ff
-ff
-ff
+3d
+13
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-28
-69
+ab
+5e
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(revision 501)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(working copy)
@@ -2,7 +2,7 @@
               org 0x0000
 0000 c284000e bbit1 8 ,pf_patch_ext 
 0001 c0000010 beq patch00_0 ,p_soft_reset 
-0002 c0450110 beq patch11_2 ,p_txon 
+0002 c0450111 beq patch11_2 ,p_txon 
 0003 c0458063 beq patch11_3 ,p_initialize_radio_cont 
 0004 c04f8061 beq patch13_7 ,p_init_param 
 0005 c0570014 beq patch15_6 ,p_app_init 
@@ -10,13 +10,13 @@
 0007 c0648076 beq patch19_1 ,p_mouse_setgpio_hibernate 
 0008 c0650086 beq patch19_2 ,p_mouse_lpm_before_common 
 0009 c06700b6 beq patch19_6 ,p_mouse_motion 
-000a c06800cf beq patch1a_0 ,p_mouse_seting_dpi 
+000a c06800d0 beq patch1a_0 ,p_mouse_seting_dpi 
 000b c06b009c beq patch1a_6 ,p_mouse_priority_bb_event 
-000c c06c80e0 beq patch1b_1 ,p_mouse_bb_event_timer 
+000c c06c80e1 beq patch1b_1 ,p_mouse_bb_event_timer 
 000d 2020137c branch loop 
 
 pf_patch_ext:
-000e c010810e beq patch24_1 ,p_spid_init 
+000e c010810f beq patch24_1 ,p_spid_init 
 000f 2020137c branch loop 
 
 p_soft_reset:
@@ -152,7 +152,7 @@
 0071 20000064 nop 100 
 0072 708a020e jam 0x0e ,core_clkpll_ctrl2 
 0073 708a0003 jam 0x03 ,core_clkpll_ctrl0 
-0074 20400113 call p_set_tx_power_pair 
+0074 20400114 call p_set_tx_power_pair 
 0075 20201265 branch initialize_radio_cont_next2 
 
 p_mouse_setgpio_hibernate:
@@ -172,7 +172,7 @@
 0081 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
 0082 d840003f arg gpcfg_output_high ,temp 
 0083 20406093 call gpio_config_function_int 
-0084 204000f2 call p_mouse_logo_led_on_timeout 
+0084 204000f3 call p_mouse_logo_led_on_timeout 
 0085 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
@@ -244,128 +244,129 @@
 00b7 58000000 setarg 0 
 00b8 67e348d1 store 6 ,mem_mouse_x 
 00b9 20404240 call mouse_check_sensor_data 
-00ba 20403f7e call mouse_zwheel 
-00bb 20403f83 call mouse_t_zwheel 
-00bc 204040dc call mouse_key 
-00bd 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00be 1fe17e1f and_into 0x1f ,pdata 
-00bf 67e0c8d0 store 1 ,mem_mouse_key 
-00c0 243400c4 nbranch p_mouse_motion_nodata ,user 
-00c1 2040471a call mouse_drawing_optima 
-00c2 204000c7 call p_mouse_logo_led_on_check 
-00c3 20204544 branch mouse_no_data_timer_init 
+00ba 2040408e call mouse_dpi_config 
+00bb 20403f7e call mouse_zwheel 
+00bc 20403f83 call mouse_t_zwheel 
+00bd 204040dc call mouse_key 
+00be 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00bf 1fe17e1f and_into 0x1f ,pdata 
+00c0 67e0c8d0 store 1 ,mem_mouse_key 
+00c1 243400c5 nbranch p_mouse_motion_nodata ,user 
+00c2 2040471a call mouse_drawing_optima 
+00c3 204000c8 call p_mouse_logo_led_on_check 
+00c4 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-00c4 20404728 call mouse_drawing_optima_init 
-00c5 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
-00c6 20600000 rtn 
+00c5 20404728 call mouse_drawing_optima_init 
+00c6 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+00c7 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00c7 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00c8 1fe0fe01 increase 1 ,pdata 
-00c9 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
-00ca 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00cb 20610000 rtn positive 
+00c8 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00c9 1fe0fe01 increase 1 ,pdata 
+00ca 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+00cb 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00cc 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00cc 58000258 setarg 0x0258 
-00cd 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00ce 20600000 rtn 
+00cd 58000258 setarg 0x0258 
+00ce 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00cf 20600000 rtn 
 
 p_mouse_seting_dpi:
-00cf 2040408f call mouse_setting_dpi_4_level 
-00d0 204000d2 call p_mouse_dpi_led_blink_delay 
-00d1 20204098 branch mouse_seting_sensor_type 
+00d0 2040408f call mouse_setting_dpi_4_level 
+00d1 204000d3 call p_mouse_dpi_led_blink_delay 
+00d2 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00d2 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00d3 c17f8000 rtneq gpio_disable 
-00d4 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00d5 247a0000 nrtn blank 
-00d6 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00d7 247a0000 nrtn blank 
-00d8 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00d9 247a0000 nrtn blank 
-00da 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00db 247a0000 nrtn blank 
-00dc 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00dd 203a00f9 branch p_mouse_dpi_led_blink_init ,blank 
-00de 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00df 20600000 rtn 
+00d3 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00d4 c17f8000 rtneq gpio_disable 
+00d5 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00d6 247a0000 nrtn blank 
+00d7 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00d8 247a0000 nrtn blank 
+00d9 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00da 247a0000 nrtn blank 
+00db 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00dc 247a0000 nrtn blank 
+00dd 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00de 203a00fa branch p_mouse_dpi_led_blink_init ,blank 
+00df 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00e0 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00e0 20403e9b call mouse_adc_read 
-00e1 20404956 call mouse_low_voltage_led_timer 
-00e2 2040232b call g24_pair_timeout_timer 
-00e3 20402556 call g24_reconn_timeout_timer 
-00e4 204047cd call mouse_24g_long_sleep_param_update_timer 
-00e5 204048be call mouse_device_poweron_timer 
-00e6 204000f6 call p_mouse_dpi_led_blink_delay_timer 
-00e7 204000e9 call p_mouse_logo_led_on_timer 
-00e8 202044bd branch mouse_bb_event_timer + 8 
+00e1 20403e9b call mouse_adc_read 
+00e2 20404956 call mouse_low_voltage_led_timer 
+00e3 2040232b call g24_pair_timeout_timer 
+00e4 20402556 call g24_reconn_timeout_timer 
+00e5 204047cd call mouse_24g_long_sleep_param_update_timer 
+00e6 204048be call mouse_device_poweron_timer 
+00e7 204000f7 call p_mouse_dpi_led_blink_delay_timer 
+00e8 204000ea call p_mouse_logo_led_on_timer 
+00e9 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-00e9 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
-00ea c17f8000 rtneq gpio_disable 
-00eb 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
-00ec 207a0000 rtn blank 
-00ed 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00ee 20406069 call gpio_out_active 
-00ef da604be5 arg mem_mouse_logo_led_on_timer ,regc 
-00f0 da4000f2 arg p_mouse_logo_led_on_timeout ,regb 
-00f1 20203191 branch timer_single_step_2b 
+00ea 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
+00eb c17f8000 rtneq gpio_disable 
+00ec 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+00ed 207a0000 rtn blank 
+00ee 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00ef 20406069 call gpio_out_active 
+00f0 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+00f1 da4000f3 arg p_mouse_logo_led_on_timeout ,regb 
+00f2 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-00f2 58000000 setarg 0 
-00f3 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00f4 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00f5 20206065 branch gpio_out_inactive 
+00f3 58000000 setarg 0 
+00f4 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00f5 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00f6 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-00f6 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00f7 da4000f9 arg p_mouse_dpi_led_blink_init ,regb 
-00f8 2020318a branch timer_single_step 
+00f7 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00f8 da4000fa arg p_mouse_dpi_led_blink_init ,regb 
+00f9 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00f9 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00fa c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00fb c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00fc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00fd 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00fe 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00ff 67e14930 store 2 ,mem_mouse_on_time 
-0100 67e14932 store 2 ,mem_mouse_off_time 
-0101 da200000 arg 0 ,rega 
-0102 6848c992 fetcht 1 ,mem_mouse_dpi 
-0103 18408402 increase 2 ,temp 
-0104 18467c03 sub temp ,3 ,null 
-0105 20410108 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0106 2441010c ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0107 202048ff branch mouse_dpi_led_blink_init_end 
+00fa 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00fb c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00fc c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00fd 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00fe 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00ff 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0100 67e14930 store 2 ,mem_mouse_on_time 
+0101 67e14932 store 2 ,mem_mouse_off_time 
+0102 da200000 arg 0 ,rega 
+0103 6848c992 fetcht 1 ,mem_mouse_dpi 
+0104 18408402 increase 2 ,temp 
+0105 18467c03 sub temp ,3 ,null 
+0106 20410109 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0107 2441010d ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0108 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0108 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0109 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-010a 18408401 increase 1 ,temp 
-010b 20600000 rtn 
+0109 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+010a c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+010b 18408401 increase 1 ,temp 
+010c 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-010c 184085fd increase -3 ,temp 
-010d 20600000 rtn 
+010d 184085fd increase -3 ,temp 
+010e 20600000 rtn 
 
 p_spid_init:
-010e 70448476 jam 0x76 ,mem_spi_init_clk 
-010f 20205cb6 branch spid_init_common 
+010f 70448476 jam 0x76 ,mem_spi_init_clk 
+0110 20205cb6 branch spid_init_common 
 
 p_txon:
-0110 6fe0c1e8 fetch 1 ,mem_tx_power 
-0111 c04f8113 beq tx_power_pair ,p_set_tx_power_pair 
-0112 2020121f branch txon_next 
+0111 6fe0c1e8 fetch 1 ,mem_tx_power 
+0112 c04f8114 beq tx_power_pair ,p_set_tx_power_pair 
+0113 2020121f branch txon_next 
 
 p_set_tx_power_pair:
-0113 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
-0114 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
-0115 2020122a branch set_rf_ldo_cfg89 
+0114 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
+0115 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+0116 2020122a branch set_rf_ldo_cfg89 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(revision 501)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(working copy)
@@ -256,6 +256,7 @@
 	setarg 0
 	store 6,mem_mouse_x
 	call mouse_check_sensor_data
+	call mouse_dpi_config
 	call mouse_zwheel
 	call mouse_t_zwheel
 	call mouse_key
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/sched/mouse.dat	(revision 501)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/sched/mouse.dat	(working copy)
@@ -93,7 +93,7 @@
 08    #24M
 
 #2.4g+ee/flash+adc+customize key select  1byte
-6a	#2.4g+eeprom
+4a	#2.4g+eeprom
 
 #sensor select  1byte
 00 #3level dpi+(2.4g:125+bt/ble:115)Hz
@@ -124,7 +124,7 @@
 mem_dpi_button_gpio:0b
 mem_matrix_public_gpio:08
 mem_sensor_motion_gpio:ff
-mem_customer_key_gpio:08
+mem_customer_key_gpio:ff
 mem_whee_a_data_gpio:04
 mem_whee_b_data_gpio:05
 mem_config_device_24g_led_gpio:ff#03
