Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/TW-GY05_Only2.4G/output/eeprom.dat	(revision 579)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/TW-GY05_Only2.4G/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-0e
+1a
 07
 c2
 84
@@ -67,11 +67,11 @@
 c0
 10
 81
-c1
+c4
 c0
 6e
 81
-b7
+ba
 20
 20
 13
@@ -1219,7 +1219,7 @@
 20
 3a
 01
-a2
+a5
 67
 e0
 cb
@@ -1383,7 +1383,7 @@
 20
 40
 01
-9f
+a2
 20
 40
 01
@@ -1395,7 +1395,7 @@
 20
 40
 01
-89
+8c
 20
 40
 40
@@ -1455,7 +1455,7 @@
 20
 40
 01
-97
+9a
 20
 20
 01
@@ -1573,6 +1573,18 @@
 c9
 1a
 20
+40
+60
+65
+20
+00
+2e
+e0
+68
+48
+c9
+1a
+20
 20
 3f
 56
@@ -1615,7 +1627,7 @@
 20
 42
 81
-94
+97
 20
 60
 00
@@ -1647,7 +1659,7 @@
 da
 40
 01
-9c
+9f
 20
 20
 31
@@ -1671,7 +1683,7 @@
 da
 40
 01
-a2
+a5
 20
 20
 31
@@ -1727,11 +1739,11 @@
 20
 41
 01
-b1
+b4
 24
 41
 01
-b5
+b8
 20
 20
 48
@@ -1767,7 +1779,7 @@
 24
 5a
 01
-ba
+bd
 20
 20
 21
@@ -1779,7 +1791,7 @@
 20
 40
 01
-be
+c1
 79
 20
 00
@@ -1808,8 +1820,8 @@
 20
 5c
 b6
-c9
-6a
+25
+89
 aa
 55
 40
@@ -2991,26 +3003,14 @@
 e8
 41
 01
-cb
-d1
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+55
+aa
+aa
+55
+7d
+60
+1a
+6f
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-2b
-cc
+77
+06
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/TW-GY05_Only2.4G/output/program.lis	(revision 579)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/TW-GY05_Only2.4G/output/program.lis	(working copy)
@@ -17,8 +17,8 @@
 000e 2020137c branch loop 
 
 pf_patch_ext:
-000f c01081c1 beq patch24_1 ,p_spid_init 
-0010 c06e81b7 beq patch3b_5 ,p_g24_dispatch 
+000f c01081c4 beq patch24_1 ,p_spid_init 
+0010 c06e81ba beq patch3b_5 ,p_g24_dispatch 
 0011 2020137c branch loop 
 
 p_soft_reset:
@@ -395,7 +395,7 @@
 012c 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
 012d 247a0000 nrtn blank 
 012e 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-012f 203a01a2 branch p_mouse_dpi_led_blink_init ,blank 
+012f 203a01a5 branch p_mouse_dpi_led_blink_init ,blank 
 0130 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
 0131 20600000 rtn 
 
@@ -452,10 +452,10 @@
 0155 20402556 call g24_reconn_timeout_timer 
 0156 204047cd call mouse_24g_long_sleep_param_update_timer 
 0157 204048be call mouse_device_poweron_timer 
-0158 2040019f call p_mouse_dpi_led_blink_delay_timer 
+0158 204001a2 call p_mouse_dpi_led_blink_delay_timer 
 0159 2040016c call p_mouse_rgb_led_off_enable_timer 
 015a 2040017d call p_mouse_rgb_led_on_enable_timer 
-015b 20400189 call p_mouse_rgb_led_on_timer 
+015b 2040018c call p_mouse_rgb_led_on_timer 
 015c 2040407c call mouse_dpi_key_check_long_press 
 015d 204044cc call mouse_bt_discovery_check 
 015e 204044dc call mouse_commbination_key_process 
@@ -470,7 +470,7 @@
 0167 20404535 call mouse_current_mult_update_timer 
 0168 20404022 call mouse_wheel_trigger_timer 
 0169 20404547 call mouse_store_information_delay_timer 
-016a 20400197 call p_mouse_check_no_data_timeout_timer 
+016a 2040019a call p_mouse_check_no_data_timeout_timer 
 016b 20200132 branch p_mouse_dpi_decrease_check_timer 
 
 p_mouse_rgb_led_off_enable_timer:
@@ -514,91 +514,94 @@
 p_mouse_mbutton_function_enable:
 0186 704bf300 jam off ,mem_mbutton_function_disable 
 0187 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0188 20203f56 branch mouse_gpio_config_input_pu 
+0188 20406065 call gpio_out_inactive 
+0189 20002ee0 nop 12000 
+018a 6848c91a fetcht 1 ,mem_mbutton_gpio 
+018b 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_rgb_led_on_timer:
-0189 6fe0cbe9 fetch 1 ,mem_rgb_led_on_enable 
-018a 247a0000 nrtn blank 
-018b 6fe0cbe8 fetch 1 ,mem_rgb_led_off_enable 
-018c 247a0000 nrtn blank 
+018c 6fe0cbe9 fetch 1 ,mem_rgb_led_on_enable 
+018d 247a0000 nrtn blank 
+018e 6fe0cbe8 fetch 1 ,mem_rgb_led_off_enable 
+018f 247a0000 nrtn blank 
 
 p_mouse_rgb_led_on:
-018d 6fe14bec fetch 2 ,mem_rgb_led_on_timer 
-018e 1fe0fe01 increase 1 ,pdata 
-018f 67e14bec store 2 ,mem_rgb_led_on_timer 
-0190 d8400258 arg 0x0258 ,temp 
-0191 98467c00 isub temp ,null 
-0192 20428194 call p_mouse_rgb_led_on_continue_1min ,zero 
-0193 20600000 rtn 
+0190 6fe14bec fetch 2 ,mem_rgb_led_on_timer 
+0191 1fe0fe01 increase 1 ,pdata 
+0192 67e14bec store 2 ,mem_rgb_led_on_timer 
+0193 d8400258 arg 0x0258 ,temp 
+0194 98467c00 isub temp ,null 
+0195 20428197 call p_mouse_rgb_led_on_continue_1min ,zero 
+0196 20600000 rtn 
 
 p_mouse_rgb_led_on_continue_1min:
-0194 704bf201 jam 1 ,mem_rgb_led_on_continue_1min_timeout_flag 
-0195 204000d3 call p_mouse_rgb_led_on_timer_init 
-0196 20200176 branch p_mouse_rgb_led_off_time_init 
+0197 704bf201 jam 1 ,mem_rgb_led_on_continue_1min_timeout_flag 
+0198 204000d3 call p_mouse_rgb_led_on_timer_init 
+0199 20200176 branch p_mouse_rgb_led_off_time_init 
 
 p_mouse_check_no_data_timeout_timer:
-0197 6fe0c92a fetch 1 ,mem_usb_addr 
-0198 c3838000 rtnbit1 7 
-0199 da604ab2 arg mem_mouse_no_data_timer ,regc 
-019a da40019c arg p_mouse_check_no_data_timeout ,regb 
-019b 20203191 branch timer_single_step_2b 
+019a 6fe0c92a fetch 1 ,mem_usb_addr 
+019b c3838000 rtnbit1 7 
+019c da604ab2 arg mem_mouse_no_data_timer ,regc 
+019d da40019f arg p_mouse_check_no_data_timeout ,regb 
+019e 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-019c 6fe0c938 fetch 1 ,mem_device_flag 
-019d c00000a9 beq mode_24g_device ,p_mouse_24g_enter_hibernate 
-019e 2020431b branch mouse_disconnect 
+019f 6fe0c938 fetch 1 ,mem_device_flag 
+01a0 c00000a9 beq mode_24g_device ,p_mouse_24g_enter_hibernate 
+01a1 2020431b branch mouse_disconnect 
 
 p_mouse_dpi_led_blink_delay_timer:
-019f da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-01a0 da4001a2 arg p_mouse_dpi_led_blink_init ,regb 
-01a1 2020318a branch timer_single_step 
+01a2 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+01a3 da4001a5 arg p_mouse_dpi_led_blink_init ,regb 
+01a4 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-01a2 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01a3 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-01a4 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-01a5 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-01a6 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-01a7 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-01a8 67e14930 store 2 ,mem_mouse_on_time 
-01a9 67e14932 store 2 ,mem_mouse_off_time 
-01aa da200000 arg 0 ,rega 
-01ab 6848c992 fetcht 1 ,mem_mouse_dpi 
-01ac 18408402 increase 2 ,temp 
-01ad 18467c03 sub temp ,3 ,null 
-01ae 204101b1 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-01af 244101b5 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-01b0 202048ff branch mouse_dpi_led_blink_init_end 
+01a5 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01a6 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+01a7 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+01a8 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+01a9 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+01aa 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+01ab 67e14930 store 2 ,mem_mouse_on_time 
+01ac 67e14932 store 2 ,mem_mouse_off_time 
+01ad da200000 arg 0 ,rega 
+01ae 6848c992 fetcht 1 ,mem_mouse_dpi 
+01af 18408402 increase 2 ,temp 
+01b0 18467c03 sub temp ,3 ,null 
+01b1 204101b4 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+01b2 244101b8 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+01b3 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-01b1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01b2 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-01b3 18408401 increase 1 ,temp 
-01b4 20600000 rtn 
+01b4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01b5 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+01b6 18408401 increase 1 ,temp 
+01b7 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-01b5 184085fd increase -3 ,temp 
-01b6 20600000 rtn 
+01b8 184085fd increase -3 ,temp 
+01b9 20600000 rtn 
 
 p_g24_dispatch:
-01b7 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-01b8 245a01ba ncall p_mouse_enable_g24_mark ,blank 
-01b9 202021d2 branch g24_dispatch + 1 
+01ba 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+01bb 245a01bd ncall p_mouse_enable_g24_mark ,blank 
+01bc 202021d2 branch g24_dispatch + 1 
 
 p_mouse_enable_g24_mark:
-01ba 704be901 jam on ,mem_rgb_led_on_enable 
-01bb 204001be call p_mouse_rgb_led_on_enable_timer_init 
-01bc 79200026 set1 mark_24g ,mark 
-01bd 20600000 rtn 
+01bd 704be901 jam on ,mem_rgb_led_on_enable 
+01be 204001c1 call p_mouse_rgb_led_on_enable_timer_init 
+01bf 79200026 set1 mark_24g ,mark 
+01c0 20600000 rtn 
 
 p_mouse_rgb_led_on_enable_timer_init:
-01be 704be800 jam off ,mem_rgb_led_off_enable 
-01bf 704beb0b jam 11 ,mem_rgb_led_on_enable_timer 
-01c0 20600000 rtn 
+01c1 704be800 jam off ,mem_rgb_led_off_enable 
+01c2 704beb0b jam 11 ,mem_rgb_led_on_enable_timer 
+01c3 20600000 rtn 
 
 p_spid_init:
-01c1 70448477 jam 0x77 ,mem_spi_init_clk 
-01c2 20205cb6 branch spid_init_common 
+01c4 70448477 jam 0x77 ,mem_spi_init_clk 
+01c5 20205cb6 branch spid_init_common 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/TW-GY05_Only2.4G/program/patch.prog	(revision 579)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/TW-GY05_Only2.4G/program/patch.prog	(working copy)
@@ -532,6 +532,9 @@
 p_mouse_mbutton_function_enable:
 	jam OFF,mem_mbutton_function_disable
 	fetcht 1,mem_mbutton_gpio
+	call gpio_out_inactive
+	nop 12000
+	fetcht 1,mem_mbutton_gpio
 	branch mouse_gpio_config_input_pu
 
 p_mouse_rgb_led_on_timer:
