Index: output/eeprom.dat
===================================================================
--- /1306ac/branch/mouse/branch/mouse_public/output/eeprom.dat	(revision 361)
+++ /1306ac/branch/mouse/branch/mouse_public/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-22
+2a
 04
 c2
 84
@@ -19,19 +19,19 @@
 c0
 23
 00
-78
+7a
 c0
 26
 00
-83
+85
 c0
 27
 00
-92
+94
 c0
 29
 00
-a5
+a7
 c0
 2d
 00
@@ -59,7 +59,7 @@
 c0
 30
 80
-6f
+71
 c1
 7f
 80
@@ -123,11 +123,11 @@
 20
 40
 00
-de
+e0
 20
 40
 00
-f6
+f8
 d8
 40
 00
@@ -424,6 +424,14 @@
 40
 53
 39
+6f
+e0
+c5
+d3
+c0
+00
+00
+6c
 70
 80
 70
@@ -535,7 +543,7 @@
 c0
 1e
 00
-86
+88
 20
 20
 59
@@ -643,7 +651,7 @@
 20
 40
 00
-a1
+a3
 20
 20
 5a
@@ -675,7 +683,7 @@
 20
 40
 00
-bc
+be
 df
 e0
 07
@@ -687,7 +695,7 @@
 20
 40
 01
-02
+04
 6f
 e2
 49
@@ -695,7 +703,7 @@
 20
 3a
 00
-b4
+b6
 67
 e2
 49
@@ -723,7 +731,7 @@
 20
 20
 00
-aa
+ac
 6f
 e2
 49
@@ -767,7 +775,7 @@
 20
 40
 00
-ea
+ec
 6f
 e0
 c9
@@ -775,7 +783,7 @@
 20
 3a
 00
-c8
+ca
 67
 e0
 c9
@@ -803,7 +811,7 @@
 20
 20
 00
-be
+c0
 6f
 e0
 c9
@@ -815,7 +823,7 @@
 20
 3a
 00
-d1
+d3
 6f
 e0
 c6
@@ -883,7 +891,7 @@
 20
 22
 80
-cd
+cf
 1a
 40
 a5
@@ -891,7 +899,7 @@
 20
 20
 00
-cd
+cf
 df
 e0
 07
@@ -903,7 +911,7 @@
 20
 40
 00
-ea
+ec
 6f
 e0
 c9
@@ -911,7 +919,7 @@
 20
 3a
 00
-ed
+ef
 67
 e0
 c9
@@ -931,7 +939,7 @@
 24
 21
 00
-ed
+ef
 1a
 42
 7e
@@ -939,7 +947,7 @@
 20
 20
 00
-e0
+e2
 d8
 40
 00
@@ -967,7 +975,7 @@
 20
 3a
 00
-f3
+f5
 1f
 f1
 fe
@@ -975,7 +983,7 @@
 20
 20
 00
-f4
+f6
 1a
 62
 7e
@@ -999,7 +1007,7 @@
 20
 40
 01
-02
+04
 6f
 e2
 49
@@ -1007,7 +1015,7 @@
 20
 3a
 01
-05
+07
 67
 e2
 49
@@ -1027,7 +1035,7 @@
 24
 21
 01
-05
+07
 1a
 42
 7e
@@ -1035,7 +1043,7 @@
 20
 20
 00
-f8
+fa
 d8
 40
 00
@@ -1060,8 +1068,8 @@
 60
 00
 00
-b7
-38
+a5
+11
 aa
 55
 06
@@ -1603,5 +1611,5 @@
 55
 09
 a0
-bd
-dd
+3f
+6e
Index: output/program.lis
===================================================================
--- /1306ac/branch/mouse/branch/mouse_public/output/program.lis	(revision 361)
+++ /1306ac/branch/mouse/branch/mouse_public/output/program.lis	(working copy)
@@ -3,10 +3,10 @@
 0000 c284000d bbit1 8 ,pf_patch_ext 
 0001 c01b8036 beq patch06_7 ,p_mouse_sensor_set_angle 
 0002 c01e8068 beq patch07_5 ,p_mouse_setgpio_hibernate 
-0003 c0230078 beq patch08_6 ,p_mouse_3io6key_check 
-0004 c0260083 beq patch09_4 ,p_mouse_priority_bb_event 
-0005 c0270092 beq patch09_6 ,p_mouse_bb_event_timer 
-0006 c02900a5 beq patch0a_2 ,p_mouse_store_device_info 
+0003 c023007a beq patch08_6 ,p_mouse_3io6key_check 
+0004 c0260085 beq patch09_4 ,p_mouse_priority_bb_event 
+0005 c0270094 beq patch09_6 ,p_mouse_bb_event_timer 
+0006 c02900a7 beq patch0a_2 ,p_mouse_store_device_info 
 0007 c02d005d beq patch0b_2 ,p_mouse_24g_package_data 
 0008 c02f002e beq patch0b_6 ,p_mouse_ui_led_off_static 
 0009 c02f8032 beq patch0b_7 ,p_mouse_ui_led_on_static 
@@ -15,7 +15,7 @@
 000c 20203a8a branch assert 
 
 pf_patch_ext:
-000d c030806f beq patch2c_1 ,p_g24_lpm_wait 
+000d c0308071 beq patch2c_1 ,p_g24_lpm_wait 
 000e c17f8000 rtneq patch3f_7 
 000f 20203a8a branch assert 
 
@@ -39,8 +39,8 @@
 001c c40b8000 rtnbit0 mouse_enable_otp 
 
 p_mouse_load_otp_info_check:
-001d 204000de call p_mouse_read_otp_dpi 
-001e 204000f6 call p_mouse_read_otp_24g_addr 
+001d 204000e0 call p_mouse_read_otp_dpi 
+001e 204000f8 call p_mouse_read_otp_24g_addr 
 
 p_mouse_otp_load_app_initflag:
 001f d8400002 arg 2 ,temp 
@@ -143,217 +143,221 @@
 
 p_mouse_setgpio_hibernate:
 0068 20405339 call mouse_setgpio_hibernate + 1 
-0069 70807080 jam 0x80 ,0x8070 
-006a 6fe08017 fetch 1 ,mem_gpio_wakeup_low + 1 
-006b 79207e05 set1 5 ,pdata 
-006c 67e08017 store 1 ,mem_gpio_wakeup_low + 1 
-006d 20403c18 call lpm_write_gpio_wakeup 
-006e 20205af0 branch mouse_1io2led_all_off 
+0069 6fe0c5d3 fetch 1 ,mem_mouse_logo_led_gpio 
+006a c000006c beq 0 ,p_mouse_setgpio_hibernate_next 
+006b 70807080 jam 0x80 ,0x8070 
+
+p_mouse_setgpio_hibernate_next:
+006c 6fe08017 fetch 1 ,mem_gpio_wakeup_low + 1 
+006d 79207e05 set1 5 ,pdata 
+006e 67e08017 store 1 ,mem_gpio_wakeup_low + 1 
+006f 20403c18 call lpm_write_gpio_wakeup 
+0070 20205af0 branch mouse_1io2led_all_off 
 
 p_g24_lpm_wait:
-006f 78347c00 enable user 
-0070 20403b1b call lpo_calibration 
-0071 6fe1c0be fetch 3 ,mem_clks_per_lpo 
-0072 203a74ca branch disable_user ,blank 
-0073 6fe0c094 fetch 1 ,mem_lpm_mode 
+0071 78347c00 enable user 
+0072 20403b1b call lpo_calibration 
+0073 6fe1c0be fetch 3 ,mem_clks_per_lpo 
 0074 203a74ca branch disable_user ,blank 
-0075 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
-0076 247a0000 nrtn blank 
-0077 20204d1c branch g24_lpm_wait_next 
+0075 6fe0c094 fetch 1 ,mem_lpm_mode 
+0076 203a74ca branch disable_user ,blank 
+0077 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
+0078 247a0000 nrtn blank 
+0079 20204d1c branch g24_lpm_wait_next 
 
 p_mouse_3io6key_check:
-0078 1a627e00 copy regc ,pdata 
-0079 67e0c850 store 1 ,mem_mouse_key_status 
-007a 1fe3fe00 lshift pdata ,pdata 
-007b 1fe22400 copy pdata ,regb 
-007c 18422600 copy temp ,regc 
-007d 2040547b call mouse_gpio_config_input_pd 
-007e 1a620400 copy regc ,temp 
-007f 20406b85 call gpio_get_bit 
-0080 7d20a400 nsetflag true ,0 ,regb 
-0081 20405753 call mouse_check_press 
-0082 2020573f branch mouse_check_key_connect_gnd_1 
+007a 1a627e00 copy regc ,pdata 
+007b 67e0c850 store 1 ,mem_mouse_key_status 
+007c 1fe3fe00 lshift pdata ,pdata 
+007d 1fe22400 copy pdata ,regb 
+007e 18422600 copy temp ,regc 
+007f 2040547b call mouse_gpio_config_input_pd 
+0080 1a620400 copy regc ,temp 
+0081 20406b85 call gpio_get_bit 
+0082 7d20a400 nsetflag true ,0 ,regb 
+0083 20405753 call mouse_check_press 
+0084 2020573f branch mouse_check_key_connect_gnd_1 
 
 p_mouse_priority_bb_event:
-0083 1a627e00 copy regc ,pdata 
-0084 c01e0086 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0085 20205914 branch mouse_priority_bb_event + 2 
+0085 1a627e00 copy regc ,pdata 
+0086 c01e0088 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0087 20205914 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-0086 6fe244da fetch 4 ,mem_24g_addr 
-0087 67e24533 store 4 ,mem_24g_receiver_addr 
-0088 67e24640 store 4 ,mem_mouse_24g_addr 
-0089 20404bce call g24_ch_syncword_crc8_init 
-008a 20405e1b call mouse_device_poweron_led_config 
-008b 20405aa9 call mouse_no_data_timer_init 
-008c 204058c4 call mouse_init_sensor_reset 
-008d 70476800 jam 0 ,mem_mouse_long_mult_flag 
-008e 70454700 jam 0 ,mem_24g_conn_sm 
-008f 70452d00 jam 0 ,mem_24g_reconn_type 
-0090 684a4533 fetcht 4 ,mem_24g_receiver_addr 
-0091 20205e17 branch mouse_24g_attempt_success + 11 
+0088 6fe244da fetch 4 ,mem_24g_addr 
+0089 67e24533 store 4 ,mem_24g_receiver_addr 
+008a 67e24640 store 4 ,mem_mouse_24g_addr 
+008b 20404bce call g24_ch_syncword_crc8_init 
+008c 20405e1b call mouse_device_poweron_led_config 
+008d 20405aa9 call mouse_no_data_timer_init 
+008e 204058c4 call mouse_init_sensor_reset 
+008f 70476800 jam 0 ,mem_mouse_long_mult_flag 
+0090 70454700 jam 0 ,mem_24g_conn_sm 
+0091 70452d00 jam 0 ,mem_24g_reconn_type 
+0092 684a4533 fetcht 4 ,mem_24g_receiver_addr 
+0093 20205e17 branch mouse_24g_attempt_success + 11 
 
 p_mouse_bb_event_timer:
-0092 204053c6 call mouse_adc_read 
-0093 20405f47 call mouse_low_voltage_led_timer 
-0094 20404907 call g24_pair_timeout_timer 
-0095 20404ba5 call g24_reconn_timeout_timer 
-0096 20405d6b call mouse_24g_long_sleep_param_update_timer 
-0097 20405e9a call mouse_device_poweron_timer 
-0098 20405ecb call mouse_dpi_led_blink_delay_timer 
-0099 20405ac1 call mouse_led_multi_timer 
-009a 20405af3 call mouse_logo_led_on_timer 
-009b 2040561c call mouse_dpi_key_check_long_press 
-009c 20405a36 call mouse_bt_discovery_check 
-009d 20405a46 call mouse_commbination_key_process 
-009e 20405a69 call mouse_check_discovery_timeout_timer 
-009f 204000a1 call p_mouse_check_direct_timeout_timer 
-00a0 20205a2d branch mouse_bb_event_timer + 15 
+0094 204053c6 call mouse_adc_read 
+0095 20405f47 call mouse_low_voltage_led_timer 
+0096 20404907 call g24_pair_timeout_timer 
+0097 20404ba5 call g24_reconn_timeout_timer 
+0098 20405d6b call mouse_24g_long_sleep_param_update_timer 
+0099 20405e9a call mouse_device_poweron_timer 
+009a 20405ecb call mouse_dpi_led_blink_delay_timer 
+009b 20405ac1 call mouse_led_multi_timer 
+009c 20405af3 call mouse_logo_led_on_timer 
+009d 2040561c call mouse_dpi_key_check_long_press 
+009e 20405a36 call mouse_bt_discovery_check 
+009f 20405a46 call mouse_commbination_key_process 
+00a0 20405a69 call mouse_check_discovery_timeout_timer 
+00a1 204000a3 call p_mouse_check_direct_timeout_timer 
+00a2 20205a2d branch mouse_bb_event_timer + 15 
 
 p_mouse_check_direct_timeout_timer:
-00a1 da604831 arg mem_mouse_direct_timer ,regc 
-00a2 da405a74 arg mouse_check_direct_timeout ,regb 
-00a3 20404dcc call timer_single_step 
-00a4 20205a71 branch mouse_check_direct_timeout_timer + 3 
+00a3 da604831 arg mem_mouse_direct_timer ,regc 
+00a4 da405a74 arg mouse_check_direct_timeout ,regb 
+00a5 20404dcc call timer_single_step 
+00a6 20205a71 branch mouse_check_direct_timeout_timer + 3 
 
 p_mouse_store_device_info:
-00a5 20405b90 call mouse_store_device_info + 1 
-00a6 c40b8000 rtnbit0 mouse_enable_otp 
+00a7 20405b90 call mouse_store_device_info + 1 
+00a8 c40b8000 rtnbit0 mouse_enable_otp 
 
 p_mouse_store_otp_device_info:
-00a7 204000bc call p_mouse_otp_store_dpi 
+00a9 204000be call p_mouse_otp_store_dpi 
 
 p_mouse_otp_store_24g_addr:
-00a8 dfe00790 arg otp_offset_24g_addr ,pdata 
-00a9 1fe22400 copy pdata ,regb 
+00aa dfe00790 arg otp_offset_24g_addr ,pdata 
+00ab 1fe22400 copy pdata ,regb 
 
 p_mouse_otp_store_24g_addr_loop:
-00aa 20400102 call p_mouse_read_otp_24g_addr_common 
-00ab 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
-00ac 203a00b4 branch p_mouse_24g_addr_store ,blank 
-00ad 67e24909 store 4 ,mem_mouse_24g_addr_last 
-00ae 1a40a404 increase 4 ,regb 
-00af dfe007cf arg otp_offset_24g_addr_end ,pdata 
-00b0 9a467c00 isub regb ,null 
-00b1 24610000 nrtn positive 
-00b2 1a427e00 copy regb ,pdata 
-00b3 202000aa branch p_mouse_otp_store_24g_addr_loop 
+00ac 20400104 call p_mouse_read_otp_24g_addr_common 
+00ad 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
+00ae 203a00b6 branch p_mouse_24g_addr_store ,blank 
+00af 67e24909 store 4 ,mem_mouse_24g_addr_last 
+00b0 1a40a404 increase 4 ,regb 
+00b1 dfe007cf arg otp_offset_24g_addr_end ,pdata 
+00b2 9a467c00 isub regb ,null 
+00b3 24610000 nrtn positive 
+00b4 1a427e00 copy regb ,pdata 
+00b5 202000ac branch p_mouse_otp_store_24g_addr_loop 
 
 p_mouse_24g_addr_store:
-00b4 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
-00b5 684a4640 fetcht 4 ,mem_mouse_24g_addr 
-00b6 98467c00 isub temp ,null 
-00b7 20628000 rtn zero 
-00b8 df200004 arg 4 ,loopcnt 
-00b9 da204640 arg mem_mouse_24g_addr ,rega 
-00ba 1a427e00 copy regb ,pdata 
-00bb 20206883 branch otp_write 
+00b6 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
+00b7 684a4640 fetcht 4 ,mem_mouse_24g_addr 
+00b8 98467c00 isub temp ,null 
+00b9 20628000 rtn zero 
+00ba df200004 arg 4 ,loopcnt 
+00bb da204640 arg mem_mouse_24g_addr ,rega 
+00bc 1a427e00 copy regb ,pdata 
+00bd 20206883 branch otp_write 
 
 p_mouse_otp_store_dpi:
-00bc dfe00760 arg otp_offset_dpi ,pdata 
-00bd 1fe22400 copy pdata ,regb 
+00be dfe00760 arg otp_offset_dpi ,pdata 
+00bf 1fe22400 copy pdata ,regb 
 
 p_mouse_otp_store_dpi_loop:
-00be 204000ea call p_mouse_read_otp_dpi_common 
-00bf 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
-00c0 203a00c8 branch p_mouse_dpi_store ,blank 
-00c1 67e0c906 store 1 ,mem_mouse_dpi_last 
-00c2 1a40a401 increase 1 ,regb 
-00c3 dfe0078f arg otp_offset_dpi_end ,pdata 
-00c4 9a467c00 isub regb ,null 
-00c5 24610000 nrtn positive 
-00c6 1a427e00 copy regb ,pdata 
-00c7 202000be branch p_mouse_otp_store_dpi_loop 
+00c0 204000ec call p_mouse_read_otp_dpi_common 
+00c1 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
+00c2 203a00ca branch p_mouse_dpi_store ,blank 
+00c3 67e0c906 store 1 ,mem_mouse_dpi_last 
+00c4 1a40a401 increase 1 ,regb 
+00c5 dfe0078f arg otp_offset_dpi_end ,pdata 
+00c6 9a467c00 isub regb ,null 
+00c7 24610000 nrtn positive 
+00c8 1a427e00 copy regb ,pdata 
+00c9 202000c0 branch p_mouse_otp_store_dpi_loop 
 
 p_mouse_dpi_store:
-00c8 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
-00c9 1fe17ef0 and pdata ,0xf0 ,pdata 
-00ca 203a00d1 branch p_mouse_dpi_store_next ,blank 
-00cb 6fe0c63f fetch 1 ,mem_mouse_dpi 
-00cc 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
+00ca 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
+00cb 1fe17ef0 and pdata ,0xf0 ,pdata 
+00cc 203a00d3 branch p_mouse_dpi_store_next ,blank 
+00cd 6fe0c63f fetch 1 ,mem_mouse_dpi 
+00ce 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
 
 p_mouse_dpi_store_end:
-00cd df200001 arg 1 ,loopcnt 
-00ce 1a427e00 copy regb ,pdata 
-00cf da204908 arg mem_mouse_otp_dpi_value ,rega 
-00d0 20206883 branch otp_write 
+00cf df200001 arg 1 ,loopcnt 
+00d0 1a427e00 copy regb ,pdata 
+00d1 da204908 arg mem_mouse_otp_dpi_value ,rega 
+00d2 20206883 branch otp_write 
 
 p_mouse_dpi_store_next:
-00d1 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
-00d2 6848c63f fetcht 1 ,mem_mouse_dpi 
-00d3 98467c00 isub temp ,null 
-00d4 20628000 rtn zero 
-00d5 18520400 lshift4 temp ,temp 
-00d6 9840fe00 iadd temp ,pdata 
-00d7 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
-00d8 1a427e00 copy regb ,pdata 
-00d9 d8400760 arg otp_offset_dpi ,temp 
-00da 98467c00 isub temp ,null 
-00db 202280cd branch p_mouse_dpi_store_end ,zero 
-00dc 1a40a5ff increase -1 ,regb 
-00dd 202000cd branch p_mouse_dpi_store_end 
+00d3 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
+00d4 6848c63f fetcht 1 ,mem_mouse_dpi 
+00d5 98467c00 isub temp ,null 
+00d6 20628000 rtn zero 
+00d7 18520400 lshift4 temp ,temp 
+00d8 9840fe00 iadd temp ,pdata 
+00d9 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
+00da 1a427e00 copy regb ,pdata 
+00db d8400760 arg otp_offset_dpi ,temp 
+00dc 98467c00 isub temp ,null 
+00dd 202280cf branch p_mouse_dpi_store_end ,zero 
+00de 1a40a5ff increase -1 ,regb 
+00df 202000cf branch p_mouse_dpi_store_end 
 
 p_mouse_read_otp_dpi:
-00de dfe00760 arg otp_offset_dpi ,pdata 
-00df 1fe22400 copy pdata ,regb 
+00e0 dfe00760 arg otp_offset_dpi ,pdata 
+00e1 1fe22400 copy pdata ,regb 
 
 p_mouse_read_otp_dpi_loop:
-00e0 204000ea call p_mouse_read_otp_dpi_common 
-00e1 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
-00e2 203a00ed branch p_mouse_dpi_load ,blank 
-00e3 67e0c906 store 1 ,mem_mouse_dpi_last 
-00e4 1a40a401 increase 1 ,regb 
-00e5 dfe0078f arg otp_offset_dpi_end ,pdata 
-00e6 9a467c00 isub regb ,null 
-00e7 242100ed nbranch p_mouse_dpi_load ,positive 
-00e8 1a427e00 copy regb ,pdata 
-00e9 202000e0 branch p_mouse_read_otp_dpi_loop 
+00e2 204000ec call p_mouse_read_otp_dpi_common 
+00e3 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
+00e4 203a00ef branch p_mouse_dpi_load ,blank 
+00e5 67e0c906 store 1 ,mem_mouse_dpi_last 
+00e6 1a40a401 increase 1 ,regb 
+00e7 dfe0078f arg otp_offset_dpi_end ,pdata 
+00e8 9a467c00 isub regb ,null 
+00e9 242100ef nbranch p_mouse_dpi_load ,positive 
+00ea 1a427e00 copy regb ,pdata 
+00eb 202000e2 branch p_mouse_read_otp_dpi_loop 
 
 p_mouse_read_otp_dpi_common:
-00ea d8400001 arg 1 ,temp 
-00eb da204907 arg mem_mouse_dpi_temp ,rega 
-00ec 202068c5 branch otpd_read_data_with_pwr_operation 
+00ec d8400001 arg 1 ,temp 
+00ed da204907 arg mem_mouse_dpi_temp ,rega 
+00ee 202068c5 branch otpd_read_data_with_pwr_operation 
 
 p_mouse_dpi_load:
-00ed 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
-00ee 1fe22600 copy pdata ,regc 
-00ef 1fe17ef0 and pdata ,0xf0 ,pdata 
-00f0 203a00f3 branch p_mouse_dpi_load_next ,blank 
-00f1 1ff1fe00 rshift4 pdata ,pdata 
-00f2 202000f4 branch p_mouse_dpi_load_end 
+00ef 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
+00f0 1fe22600 copy pdata ,regc 
+00f1 1fe17ef0 and pdata ,0xf0 ,pdata 
+00f2 203a00f5 branch p_mouse_dpi_load_next ,blank 
+00f3 1ff1fe00 rshift4 pdata ,pdata 
+00f4 202000f6 branch p_mouse_dpi_load_end 
 
 p_mouse_dpi_load_next:
-00f3 1a627e00 copy regc ,pdata 
+00f5 1a627e00 copy regc ,pdata 
 
 p_mouse_dpi_load_end:
-00f4 67e0c63f store 1 ,mem_mouse_dpi 
-00f5 20600000 rtn 
+00f6 67e0c63f store 1 ,mem_mouse_dpi 
+00f7 20600000 rtn 
 
 p_mouse_read_otp_24g_addr:
-00f6 dfe00790 arg otp_offset_24g_addr ,pdata 
-00f7 1fe22400 copy pdata ,regb 
+00f8 dfe00790 arg otp_offset_24g_addr ,pdata 
+00f9 1fe22400 copy pdata ,regb 
 
 p_mouse_read_otp_24g_addr_loop:
-00f8 20400102 call p_mouse_read_otp_24g_addr_common 
-00f9 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
-00fa 203a0105 branch p_mouse_24g_addr_load ,blank 
-00fb 67e24909 store 4 ,mem_mouse_24g_addr_last 
-00fc 1a40a404 increase 4 ,regb 
-00fd dfe007cf arg otp_offset_24g_addr_end ,pdata 
-00fe 9a467c00 isub regb ,null 
-00ff 24210105 nbranch p_mouse_24g_addr_load ,positive 
-0100 1a427e00 copy regb ,pdata 
-0101 202000f8 branch p_mouse_read_otp_24g_addr_loop 
+00fa 20400104 call p_mouse_read_otp_24g_addr_common 
+00fb 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
+00fc 203a0107 branch p_mouse_24g_addr_load ,blank 
+00fd 67e24909 store 4 ,mem_mouse_24g_addr_last 
+00fe 1a40a404 increase 4 ,regb 
+00ff dfe007cf arg otp_offset_24g_addr_end ,pdata 
+0100 9a467c00 isub regb ,null 
+0101 24210107 nbranch p_mouse_24g_addr_load ,positive 
+0102 1a427e00 copy regb ,pdata 
+0103 202000fa branch p_mouse_read_otp_24g_addr_loop 
 
 p_mouse_read_otp_24g_addr_common:
-0102 d8400004 arg 4 ,temp 
-0103 da20490d arg mem_mouse_24g_addr_temp ,rega 
-0104 202068c5 branch otpd_read_data_with_pwr_operation 
+0104 d8400004 arg 4 ,temp 
+0105 da20490d arg mem_mouse_24g_addr_temp ,rega 
+0106 202068c5 branch otpd_read_data_with_pwr_operation 
 
 p_mouse_24g_addr_load:
-0105 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
-0106 67e24640 store 4 ,mem_mouse_24g_addr 
-0107 20600000 rtn 
+0107 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
+0108 67e24640 store 4 ,mem_mouse_24g_addr 
+0109 20600000 rtn 
               org 0x3800
 
 start:
Index: program/patch.prog
===================================================================
--- /1306ac/branch/mouse/branch/mouse_public/program/patch.prog	(revision 361)
+++ /1306ac/branch/mouse/branch/mouse_public/program/patch.prog	(working copy)
@@ -319,7 +319,10 @@
 	
 p_mouse_setgpio_hibernate:
 	call mouse_setgpio_hibernate+1
+	fetch 1,mem_mouse_logo_led_gpio
+	beq 0,p_mouse_setgpio_hibernate_next
 	jam 0x80,0x8070
+p_mouse_setgpio_hibernate_next:
 	fetch 1,mem_gpio_wakeup_low+1	//enable ice wakeup
 	set1 5,pdata
 	store 1,mem_gpio_wakeup_low+1
