Index: format/app_shutter.format
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/format/app_shutter.format	(revision 4241)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/format/app_shutter.format	(working copy)
@@ -130,7 +130,7 @@
 
 
 (
-0x16c0 OTP_OFFSET_APP_INITLAG
+0x1700 OTP_OFFSET_APP_INITLAG
 )
 
 
Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/output/otp.dat	(revision 4241)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-8a
+9a
 08
 c2
 84
@@ -32,7 +32,7 @@
 c0
 0a
 01
-d7
+db
 c0
 0a
 81
@@ -52,7 +52,7 @@
 c0
 12
 81
-f9
+fd
 c0
 13
 80
@@ -60,7 +60,7 @@
 c0
 50
 01
-5a
+5e
 c0
 58
 81
@@ -72,11 +72,11 @@
 c0
 6d
 01
-a8
+ac
 c0
 6e
 01
-b8
+bc
 20
 20
 23
@@ -96,7 +96,7 @@
 c0
 1c
 81
-f3
+f7
 c0
 1f
 80
@@ -104,7 +104,7 @@
 c0
 26
 81
-f7
+fb
 c1
 7f
 80
@@ -756,11 +756,11 @@
 20
 40
 01
-7a
+7e
 20
 40
 01
-a5
+a9
 20
 40
 00
@@ -776,7 +776,7 @@
 20
 20
 01
-a7
+ab
 20
 75
 80
@@ -1228,6 +1228,22 @@
 58
 00
 00
+00
+67
+e1
+45
+2e
+58
+00
+06
+02
+67
+e1
+45
+56
+58
+00
+00
 50
 67
 e1
@@ -1272,7 +1288,7 @@
 58
 00
 01
-45
+49
 67
 e1
 43
@@ -1280,7 +1296,7 @@
 58
 00
 01
-48
+4c
 67
 e1
 43
@@ -1332,15 +1348,15 @@
 c0
 18
 81
-4d
+51
 c0
 0a
 81
-4f
+53
 c0
 1f
 81
-53
+57
 20
 20
 62
@@ -1448,15 +1464,15 @@
 20
 20
 01
-67
+6b
 da
 40
-16
-c0
+17
+00
 20
 40
 01
-75
+79
 6f
 e0
 c8
@@ -1464,7 +1480,7 @@
 20
 3a
 01
-6c
+70
 20
 20
 63
@@ -1476,7 +1492,7 @@
 20
 40
 01
-71
+75
 58
 00
 00
@@ -1499,8 +1515,8 @@
 ae
 da
 40
-16
-c0
+17
+00
 20
 20
 6b
@@ -1516,7 +1532,7 @@
 20
 20
 01
-78
+7c
 20
 40
 6b
@@ -1576,7 +1592,7 @@
 20
 40
 01
-97
+9b
 2a
 2f
 fe
@@ -1608,7 +1624,7 @@
 20
 40
 01
-97
+9b
 d8
 a0
 8a
@@ -1636,7 +1652,7 @@
 20
 21
 01
-8c
+90
 20
 20
 21
@@ -1740,7 +1756,7 @@
 20
 40
 01
-d0
+d4
 70
 8a
 08
@@ -1776,7 +1792,7 @@
 20
 40
 01
-c6
+ca
 6f
 f0
 8a
@@ -1820,7 +1836,7 @@
 20
 40
 01
-d0
+d4
 70
 80
 cd
@@ -1880,7 +1896,7 @@
 c3
 02
 81
-d1
+d5
 68
 59
 01
@@ -1916,7 +1932,7 @@
 c0
 08
 01
-f0
+f4
 58
 00
 57
@@ -1960,7 +1976,7 @@
 c0
 08
 01
-ed
+f1
 58
 00
 2b
@@ -1996,7 +2012,7 @@
 20
 20
 01
-e9
+ed
 58
 00
 83
@@ -2008,7 +2024,7 @@
 20
 20
 01
-de
+e2
 6f
 e0
 c3
@@ -2056,7 +2072,7 @@
 20
 40
 02
-0a
+0e
 6f
 e0
 c0
@@ -2168,7 +2184,7 @@
 20
 22
 82
-1d
+21
 e7
 e0
 80
@@ -2188,7 +2204,7 @@
 c2
 00
 02
-17
+1b
 1a
 42
 04
@@ -2197,8 +2213,8 @@
 60
 00
 00
-33
-9f
+41
+1d
 aa
 55
 40
@@ -2557,5 +2573,5 @@
 55
 e4
 4c
-f2
+7b
 96
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/output/ramcode.rom	(revision 4241)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/output/ramcode.rom	(working copy)
@@ -2,25 +2,25 @@
 c0000062
 c001007b
 c0088084
-c00a01d7
+c00a01db
 c00a8111
 c00c011f
 c00c80de
 c00d0096
-c01281f9
+c01281fd
 c0138040
-c050015a
+c050015e
 c0588129
 c0628126
-c06d01a8
-c06e01b8
+c06d01ac
+c06e01bc
 2020235a
 c0120019
 c0128076
 c0130066
-c01c81f3
+c01c81f7
 c01f804b
-c02681f7
+c02681fb
 c17f8000
 2020235a
 204025c2
@@ -183,12 +183,12 @@
 58557474
 67f18968
 7089606e
-2040017a
-204001a5
+2040017e
+204001a9
 204000bf
 7041480c
 20406f4e
-202001a7
+202001ab
 20758000
 37d98200
 6fe0c11c
@@ -301,6 +301,10 @@
 20758000
 204070d7
 7040a60a
+58000000
+67e1452e
+58000602
+67e14556
 58000050
 67e144f6
 5800000e
@@ -312,9 +316,9 @@
 67e44512
 6fe448a6
 67e444fa
-58000145
+58000149
 67e143db
-58000148
+5800014c
 67e143dd
 5800638a
 67e143df
@@ -327,9 +331,9 @@
 204070c8
 20206327
 1a627e00
-c018814d
-c00a814f
-c01f8153
+c0188151
+c00a8153
+c01f8157
 202062da
 7048af01
 20600000
@@ -356,24 +360,24 @@
 20407780
 6fe0c6d0
 203a63aa
-20200167
-da4016c0
-20400175
+2020016b
+da401700
+20400179
 6fe0c8ae
-203a016c
+203a0170
 202063aa
 7048ae01
-20400171
+20400175
 58000050
 67e144f6
 202063b9
 df200001
 da2048ae
-da4016c0
+da401700
 20206b45
 df200001
 da2048ae
-20200178
+2020017c
 20406b3a
 20206b74
 20758000
@@ -388,7 +392,7 @@
 708ac200
 708ac300
 d8e00006
-20400197
+2040019b
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -396,14 +400,14 @@
 d8e00005
 2040211c
 2040211e
-20400197
+2040019b
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-2021018c
+20210190
 2020214f
 2000003c
 58000f00
@@ -429,7 +433,7 @@
 6fe0c409
 67f080cd
 20000bb8
-204001d0
+204001d4
 708a08c1
 6a40c419
 df200008
@@ -438,7 +442,7 @@
 67e0c433
 6240c419
 20600000
-204001c6
+204001ca
 6ff08a09
 793ffe07
 67f08a09
@@ -449,7 +453,7 @@
 6fe0c409
 67f080cd
 20000bb8
-204001d0
+204001d4
 7080cd00
 20206fa1
 6ff080cc
@@ -464,7 +468,7 @@
 20600000
 7080cc03
 6ff08129
-c30281d1
+c30281d5
 68590164
 6049440a
 7080cc00
@@ -473,7 +477,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c00801f0
+c00801f4
 58005762
 67f10907
 70890103
@@ -484,7 +488,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c00801ed
+c00801f1
 58002bb1
 67f10907
 c6978000
@@ -493,10 +497,10 @@
 20600000
 58004189
 67f10907
-202001e9
+202001ed
 58008312
 67f10907
-202001de
+202001e2
 6fe0c334
 c1000000
 c001b04a
@@ -508,7 +512,7 @@
 6fe240ad
 9840fe00
 67e240ad
-2040020a
+2040020e
 6fe0c0cb
 79207e04
 204023e1
@@ -536,11 +540,11 @@
 efe08011
 e8408013
 98467c00
-2022821d
+20228221
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c2000217
+c200021b
 1a420400
 20600000
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/program/patch.prog	(revision 4241)
+++ /1121s/branch/shutter/branch/shutter/jxy_project/yc1386s_jxy_277/program/patch.prog	(working copy)
@@ -385,7 +385,11 @@
 	jam 0x0a,mem_lpm_overhead
 	// setarg 0x0602
 	// store 2,mem_key0_press
-
+	setarg 0x0000
+	store 2,mem_key0_press
+	setarg 0x0602
+	store 2,mem_key0_release
+	
 	setarg 0x0050
 	store 2,mem_ble_shutter_reconn_timeout
 
@@ -451,7 +455,6 @@
 
 p_shutter_init_next:
 	call shutter_load_buffer_config_form_DataRom
-
 p_shutter_power_switch:
 	fetch 1, mem_shutter_hard_soft_switch_case
 	beq HARD_SWITCH, shutter_hart_swtich_power_on
