Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/output/otp.dat	(revision 3181)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-9a
+aa
 08
 c2
 84
@@ -32,7 +32,7 @@
 c0
 0a
 01
-b1
+b5
 c0
 0a
 80
@@ -56,11 +56,11 @@
 c0
 12
 82
-05
+09
 c0
 13
 81
-fa
+fe
 c0
 58
 81
@@ -72,7 +72,7 @@
 c0
 6d
 01
-9a
+9e
 20
 20
 23
@@ -80,7 +80,7 @@
 c0
 12
 01
-d3
+d7
 c0
 12
 80
@@ -92,7 +92,7 @@
 c0
 1c
 81
-cd
+d1
 c0
 1f
 80
@@ -100,7 +100,7 @@
 c0
 26
 81
-d1
+d5
 c1
 7f
 80
@@ -604,11 +604,11 @@
 20
 40
 01
-6c
+70
 20
 40
 01
-97
+9b
 20
 40
 00
@@ -624,7 +624,7 @@
 20
 20
 01
-99
+9d
 37
 d9
 82
@@ -1061,6 +1061,10 @@
 75
 80
 00
+20
+40
+70
+d7
 70
 40
 a6
@@ -1111,7 +1115,7 @@
 fa
 58
 00
-63
+01
 27
 67
 e1
@@ -1120,7 +1124,7 @@
 58
 00
 01
-26
+2a
 67
 e1
 43
@@ -1136,7 +1140,7 @@
 58
 00
 01
-64
+68
 67
 e1
 43
@@ -1144,7 +1148,7 @@
 58
 00
 01
-31
+35
 67
 e1
 45
@@ -1164,7 +1168,7 @@
 c0
 00
 01
-23
+24
 6f
 e0
 c5
@@ -1189,6 +1193,18 @@
 20
 63
 40
+df
+e0
+00
+0a
+20
+40
+70
+c8
+20
+20
+63
+27
 1a
 62
 7e
@@ -1196,15 +1212,15 @@
 c0
 18
 81
-2b
+2f
 c0
 0a
 81
-2d
+31
 c0
 1f
 81
-65
+69
 20
 20
 62
@@ -1248,7 +1264,7 @@
 20
 3a
 01
-38
+3c
 70
 48
 c2
@@ -1260,7 +1276,7 @@
 20
 20
 01
-42
+46
 70
 48
 c2
@@ -1292,7 +1308,7 @@
 24
 3a
 01
-41
+45
 70
 48
 c1
@@ -1316,11 +1332,11 @@
 c0
 00
 01
-52
+56
 c0
 00
 81
-48
+4c
 20
 60
 00
@@ -1364,7 +1380,7 @@
 20
 20
 01
-61
+65
 58
 00
 00
@@ -1404,7 +1420,7 @@
 20
 20
 01
-61
+65
 68
 49
 44
@@ -1520,7 +1536,7 @@
 20
 40
 01
-89
+8d
 2a
 2f
 fe
@@ -1552,7 +1568,7 @@
 20
 40
 01
-89
+8d
 d8
 a0
 8a
@@ -1580,7 +1596,7 @@
 20
 21
 01
-7e
+82
 20
 20
 21
@@ -1684,7 +1700,7 @@
 20
 40
 01
-aa
+ae
 70
 8a
 08
@@ -1728,7 +1744,7 @@
 c3
 02
 81
-ab
+af
 68
 59
 01
@@ -1764,7 +1780,7 @@
 c0
 08
 01
-ca
+ce
 58
 00
 57
@@ -1808,7 +1824,7 @@
 c0
 08
 01
-c7
+cb
 58
 00
 2b
@@ -1844,7 +1860,7 @@
 20
 20
 01
-c3
+c7
 58
 00
 83
@@ -1856,7 +1872,7 @@
 20
 20
 01
-b8
+bc
 6f
 e0
 c3
@@ -1888,7 +1904,7 @@
 c5
 97
 81
-d9
+dd
 78
 3c
 fc
@@ -1932,7 +1948,7 @@
 20
 37
 01
-e2
+e6
 1b
 42
 04
@@ -1980,7 +1996,7 @@
 20
 40
 01
-f0
+f4
 6f
 e0
 81
@@ -2112,7 +2128,7 @@
 20
 40
 02
-0e
+12
 20
 20
 24
@@ -2184,7 +2200,7 @@
 20
 22
 82
-21
+25
 e7
 e0
 80
@@ -2204,7 +2220,7 @@
 c2
 00
 02
-1b
+1f
 1a
 42
 04
@@ -2213,8 +2229,8 @@
 60
 00
 00
-92
-08
+c1
+cd
 aa
 55
 40
@@ -2312,7 +2328,7 @@
 00
 db
 42
-40
+70
 31
 1f
 98
@@ -2597,7 +2613,7 @@
 aa
 aa
 55
-b8
+e8
 55
-92
-57
+72
+90
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/output/ramcode.rom	(revision 3181)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/output/ramcode.rom	(working copy)
@@ -2,24 +2,24 @@
 c0000018
 c001005a
 c0088063
-c00a01b1
+c00a01b5
 c00a80ea
 c00c00f8
 c00c80b7
 c00d0071
 c00e001c
-c0128205
-c01381fa
+c0128209
+c01381fe
 c0588102
 c06280ff
-c06d019a
+c06d019e
 2020235a
-c01201d3
+c01201d7
 c0128055
 c0130045
-c01c81cd
+c01c81d1
 c01f802a
-c02681d1
+c02681d5
 c17f8000
 2020235a
 2435a002
@@ -145,12 +145,12 @@
 58557474
 67f18968
 7089606e
-2040016c
-20400197
+20400170
+2040019b
 20400099
 7041480c
 20406f4e
-20200199
+2020019d
 37d98200
 6fe0c11c
 67f0813a
@@ -260,6 +260,7 @@
 7080d6c0
 20407396
 20758000
+204070d7
 7040a60a
 5800000a
 67e144f6
@@ -272,30 +273,33 @@
 67e44512
 6fe448a6
 67e444fa
-58006327
+58000127
 67e143db
-58000126
+5800012a
 67e143dd
 5800638a
 67e143df
-58000164
+58000168
 67e143e3
-58000131
+58000135
 67e14524
 204062c2
 20406396
 6fe0c51a
-c0000123
+c0000124
 6fe0c51b
 67e0c4ec
 202063a1
 7044ecff
 70451c01
 20206340
+dfe0000a
+204070c8
+20206327
 1a627e00
-c018812b
-c00a812d
-c01f8165
+c018812f
+c00a8131
+c01f8169
 202062da
 7048ae01
 20600000
@@ -306,10 +310,10 @@
 2040635d
 24760000
 1a227e00
-203a0138
+203a013c
 7048c200
 20404323
-20200142
+20200146
 7048c201
 7048c100
 20404325
@@ -317,14 +321,14 @@
 6fe0c8c1
 247a0000
 6fe0c8c2
-243a0141
+243a0145
 7048c101
 20206371
 6fe0c8c3
 79407e00
 67e0c8c3
-c0000152
-c0008148
+c0000156
+c000814c
 20600000
 58000000
 67e1452e
@@ -335,7 +339,7 @@
 58000006
 67e1455b
 da60452e
-20200161
+20200165
 58000000
 67e1452e
 58000002
@@ -345,7 +349,7 @@
 58000006
 67e1455b
 da60452e
-20200161
+20200165
 68494430
 e7e08002
 efe08005
@@ -374,7 +378,7 @@
 708ac200
 708ac300
 d8e00006
-20400189
+2040018d
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -382,14 +386,14 @@
 d8e00005
 2040211c
 2040211e
-20400189
+2040018d
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-2021017e
+20210182
 2020214f
 2000003c
 58000f00
@@ -415,7 +419,7 @@
 6fe0c409
 67f080cd
 20000bb8
-204001aa
+204001ae
 708a08c1
 6a40c419
 df200008
@@ -426,7 +430,7 @@
 20600000
 7080cc03
 6ff08129
-c30281ab
+c30281af
 68590164
 6049440a
 7080cc00
@@ -435,7 +439,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c00801ca
+c00801ce
 58005762
 67f10907
 70890103
@@ -446,7 +450,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c00801c7
+c00801cb
 58002bb1
 67f10907
 c6978000
@@ -455,10 +459,10 @@
 20600000
 58004189
 67f10907
-202001c3
+202001c7
 58008312
 67f10907
-202001b8
+202001bc
 6fe0c334
 c1000000
 c001b04a
@@ -466,7 +470,7 @@
 793f8030
 20202af6
 204025c2
-c59781d9
+c59781dd
 783cfc00
 2000001e
 204025c2
@@ -477,7 +481,7 @@
 78507c00
 19623600
 37c18400
-203701e2
+203701e6
 1b420400
 604b000f
 242c26fa
@@ -489,7 +493,7 @@
 984fb600
 20406877
 20372677
-204001f0
+204001f4
 6fe08168
 c301a677
 2055a477
@@ -522,7 +526,7 @@
 6fe240ad
 9840fe00
 67e240ad
-2040020e
+20400212
 20202425
 600440e7
 d8c08070
@@ -540,11 +544,11 @@
 efe08011
 e8408013
 98467c00
-20228221
+20228225
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c200021b
+c200021f
 1a420400
 20600000
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/output/sched.rom	(revision 3181)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/output/sched.rom	(working copy)
@@ -69,7 +69,7 @@
 mem_ui_button_gpio:ff
 mem_otp_load_check_sum:5a
 
-mem_le_lap:40 31 1f 98 07 2a
+mem_le_lap:70 31 1f 98 07 2a
 mem_le_name_len:
 'Selfie
 
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/program/patch.prog	(revision 3181)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/program/patch.prog	(working copy)
@@ -343,6 +343,7 @@
 	call enable_authrom
 	rtn wake
 	//call shutter_default_init
+	call wdt_set_disable
 	jam 0x0a,mem_lpm_overhead
 	setarg 0x000a
 	store 2,mem_ble_shutter_reconn_timeout
@@ -357,7 +358,7 @@
 	fetch 8,mem_shutter_reconn_or_discovery_blink_time_conf
 	store 8,mem_ble_shutter_reconn_blink_on_time
 
-	setarg shutter_process_idle
+	setarg p_shutter_process_idle
 	store 2,mem_cb_idle_process
 
 	setarg p_shutter_process_bb_event
@@ -387,6 +388,11 @@
 	jam SS_STATE_POWER_ON,mem_shutter_soft_switch_power_state
 	branch shutter_start_reconnect
 
+p_shutter_process_idle:
+	arg 10, pdata //Լ96ms
+	call wdt_init_config
+	branch shutter_process_idle
+
 p_shutter_process_bb_event:
 	copy regc,pdata
 	beq BT_EVT_LE_PAIRING_SUCCESS,p_ble_shutter_pair_success
Index: sched/shutter.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/sched/shutter.dat	(revision 3181)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_376/sched/shutter.dat	(working copy)
@@ -2,7 +2,7 @@
 mem_ui_button_gpio:ff
 mem_otp_load_check_sum:5a
 
-mem_le_lap:40 31 1f 98 07 2a
+mem_le_lap:70 31 1f 98 07 2a
 mem_le_name_len:
 'Selfie
 
