Index: format/app_shutter_dy.format
===================================================================
--- /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/format/app_shutter_dy.format	(revision 5633)
+++ /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/format/app_shutter_dy.format	(working copy)
@@ -221,6 +221,9 @@
 1 mem_shutter_low_volatge_led_time
 1 mem_shutter_low_voltage_led_status
 
+1 mem_shutter_fun2_press_count
+1 mem_shutter_fun2_press_time
+
 0 mem_shutter_dy_end
 )
 
Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/output/otp.dat	(revision 5633)
+++ /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-16
+62
 0f
 c2
 84
@@ -31,8 +31,8 @@
 29
 c0
 0a
-02
-ed
+03
+00
 c0
 0a
 81
@@ -52,7 +52,7 @@
 c0
 12
 83
-0f
+22
 c0
 13
 80
@@ -80,7 +80,7 @@
 c0
 55
 83
-ba
+cd
 c0
 58
 81
@@ -96,7 +96,7 @@
 c0
 6d
 02
-d6
+e9
 20
 20
 23
@@ -116,11 +116,11 @@
 c0
 1c
 83
-09
+1c
 c0
 26
 83
-0d
+20
 c1
 7f
 80
@@ -588,7 +588,7 @@
 20
 20
 03
-68
+7b
 70
 4f
 da
@@ -596,11 +596,11 @@
 20
 20
 03
-8a
+9d
 20
 40
 02
-9a
+ad
 20
 20
 63
@@ -1128,7 +1128,7 @@
 20
 40
 03
-82
+95
 da
 60
 4f
@@ -1144,7 +1144,7 @@
 20
 40
 03
-a4
+b7
 da
 60
 4f
@@ -1416,11 +1416,11 @@
 20
 40
 02
-a8
+bb
 20
 40
 02
-d3
+e6
 20
 40
 01
@@ -1436,7 +1436,7 @@
 20
 20
 02
-d5
+e8
 20
 75
 80
@@ -1928,7 +1928,7 @@
 58
 00
 02
-3b
+4b
 67
 e1
 43
@@ -1936,7 +1936,7 @@
 58
 00
 02
-18
+28
 67
 e1
 43
@@ -1944,7 +1944,7 @@
 58
 00
 02
-2d
+3d
 67
 e1
 43
@@ -2115,6 +2115,10 @@
 dd
 20
 40
+02
+12
+20
+40
 67
 6c
 20
@@ -2124,19 +2128,79 @@
 20
 40
 02
-11
+21
 20
 20
 64
 d9
 da
 60
+4f
+fa
+da
+40
+02
+15
+20
+20
+42
+e0
+6f
+e0
+cf
+f9
+70
+4f
+f9
+00
+c0
+00
+82
+1b
+c0
+01
+02
+1d
+c0
+01
+82
+1f
+20
+60
+00
+00
+20
+40
+02
+ad
+20
+20
+63
+71
+da
+60
+4a
+7b
+20
+20
+63
+71
+da
+60
+4a
+30
+20
+20
+63
+71
+da
+60
 45
 18
 da
 40
 02
-14
+24
 20
 20
 42
@@ -2164,19 +2228,19 @@
 c0
 20
 02
-24
+34
 c0
 18
 82
-22
+32
 c0
 0a
 82
-1f
+2f
 c0
 0a
 02
-1e
+2e
 20
 20
 64
@@ -2228,7 +2292,7 @@
 24
 3a
 02
-38
+48
 6f
 e4
 4f
@@ -2248,7 +2312,7 @@
 c0
 12
 02
-30
+40
 20
 60
 00
@@ -2272,7 +2336,7 @@
 24
 3a
 02
-38
+48
 6f
 e4
 4f
@@ -2300,11 +2364,11 @@
 20
 40
 03
-38
+4b
 20
 40
 02
-46
+56
 d8
 e0
 00
@@ -2340,7 +2404,7 @@
 20
 20
 02
-60
+70
 6f
 e1
 44
@@ -2348,7 +2412,7 @@
 c2
 84
 82
-4b
+5b
 d8
 a0
 45
@@ -2396,7 +2460,7 @@
 24
 21
 02
-57
+67
 6f
 e0
 c9
@@ -2508,7 +2572,7 @@
 20
 40
 02
-7d
+8d
 6f
 e1
 06
@@ -2556,7 +2620,7 @@
 c2
 00
 02
-69
+79
 20
 60
 00
@@ -2600,7 +2664,7 @@
 20
 20
 02
-87
+97
 1a
 60
 8c
@@ -2612,7 +2676,7 @@
 20
 20
 02
-8a
+9a
 20
 40
 65
@@ -2628,7 +2692,7 @@
 20
 40
 02
-a0
+b3
 18
 e2
 7e
@@ -2636,19 +2700,19 @@
 c0
 03
 02
-94
+a4
 c0
 03
 82
-96
+a6
 c0
 04
 02
-98
+a8
 c0
 04
 82
-9f
+b2
 20
 20
 65
@@ -2669,14 +2733,26 @@
 20
 63
 71
-da
-60
-4a
-a8
-20
+6f
+e0
+cf
+f9
+1f
+e0
+fe
+01
+67
+e0
+cf
+f9
+70
+4f
+fa
+04
 20
-63
-71
+60
+00
+00
 da
 60
 4f
@@ -2784,7 +2860,7 @@
 20
 40
 02
-c5
+d8
 2a
 2f
 fe
@@ -2816,7 +2892,7 @@
 20
 40
 02
-c5
+d8
 d8
 a0
 8a
@@ -2844,7 +2920,7 @@
 20
 21
 02
-ba
+cd
 20
 20
 21
@@ -2948,7 +3024,7 @@
 20
 40
 02
-e6
+f9
 70
 8a
 08
@@ -2992,7 +3068,7 @@
 c3
 02
 82
-e7
+fa
 68
 59
 01
@@ -3028,7 +3104,7 @@
 c0
 08
 03
-06
+19
 58
 00
 57
@@ -3072,7 +3148,7 @@
 c0
 08
 03
-03
+16
 58
 00
 2b
@@ -3107,8 +3183,8 @@
 07
 20
 20
-02
-ff
+03
+12
 58
 00
 83
@@ -3119,8 +3195,8 @@
 07
 20
 20
-02
-f4
+03
+07
 6f
 e0
 c3
@@ -3168,7 +3244,7 @@
 20
 40
 03
-20
+33
 6f
 e0
 c0
@@ -3280,7 +3356,7 @@
 20
 22
 83
-33
+46
 e7
 e0
 80
@@ -3300,7 +3376,7 @@
 c2
 00
 03
-2d
+40
 1a
 42
 04
@@ -3340,7 +3416,7 @@
 24
 3a
 03
-5a
+6d
 1a
 42
 7e
@@ -3356,7 +3432,7 @@
 24
 21
 03
-4c
+5f
 1a
 20
 a2
@@ -3368,7 +3444,7 @@
 24
 3a
 03
-3e
+51
 da
 20
 00
@@ -3376,7 +3452,7 @@
 20
 40
 03
-53
+66
 1c
 42
 7e
@@ -3396,7 +3472,7 @@
 24
 3a
 03
-5d
+70
 1a
 22
 7e
@@ -3440,11 +3516,11 @@
 20
 40
 03
-61
+74
 20
 20
 03
-54
+67
 1a
 42
 7e
@@ -3456,7 +3532,7 @@
 20
 20
 03
-42
+55
 1a
 22
 7e
@@ -3472,7 +3548,7 @@
 20
 20
 03
-51
+64
 da
 60
 4f
@@ -3480,7 +3556,7 @@
 da
 40
 03
-64
+77
 20
 20
 42
@@ -3492,11 +3568,11 @@
 c0
 00
 83
-68
+7b
 c0
 01
 03
-8a
+9d
 20
 60
 00
@@ -3508,11 +3584,11 @@
 24
 3a
 03
-76
+89
 20
 40
 03
-b4
+c7
 6f
 e0
 cf
@@ -3532,7 +3608,7 @@
 20
 22
 83
-82
+95
 da
 60
 4f
@@ -3540,7 +3616,7 @@
 20
 40
 03
-ac
+bf
 ef
 e1
 00
@@ -3560,7 +3636,7 @@
 20
 40
 03
-b7
+ca
 6f
 e0
 cf
@@ -3580,7 +3656,7 @@
 20
 42
 83
-82
+95
 da
 60
 4f
@@ -3588,7 +3664,7 @@
 20
 40
 03
-ac
+bf
 ef
 e1
 00
@@ -3624,7 +3700,7 @@
 20
 40
 03
-ac
+bf
 58
 00
 04
@@ -3644,11 +3720,11 @@
 24
 3a
 03
-98
+ab
 20
 40
 03
-b4
+c7
 6f
 e0
 cf
@@ -3668,7 +3744,7 @@
 20
 22
 83
-a4
+b7
 da
 60
 4f
@@ -3676,7 +3752,7 @@
 20
 40
 03
-ac
+bf
 ef
 e1
 00
@@ -3696,7 +3772,7 @@
 20
 40
 03
-b7
+ca
 6f
 e0
 cf
@@ -3716,7 +3792,7 @@
 20
 42
 83
-a4
+b7
 da
 60
 4f
@@ -3724,7 +3800,7 @@
 20
 40
 03
-ac
+bf
 ef
 e1
 00
@@ -3760,7 +3836,7 @@
 20
 40
 03
-ac
+bf
 58
 00
 0a
@@ -3848,7 +3924,7 @@
 20
 20
 03
-bf
+d2
 58
 00
 05
@@ -3873,8 +3949,8 @@
 60
 00
 00
-b8
-d3
+98
+c6
 aa
 55
 40
@@ -3965,7 +4041,7 @@
 00
 db
 42
-0d
+05
 21
 21
 98
@@ -6100,7 +6176,7 @@
 aa
 aa
 55
-d8
+d0
 83
-ef
-06
+b8
+e5
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/output/ramcode.rom	(revision 5633)
+++ /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/output/ramcode.rom	(working copy)
@@ -2,29 +2,29 @@
 c000004f
 c0010120
 c0088129
-c00a02ed
+c00a0300
 c00a81b6
 c00c01c4
 c00c8183
 c00d013b
-c012830f
+c0128322
 c013807a
 c05180bf
 c05280fd
 c0530085
 c0538095
 c05500e7
-c05583ba
+c05583cd
 c05881d6
 c062001d
 c06281cb
-c06d02d6
+c06d02e9
 2020235a
 c0120053
 c01280d0
 c01300d5
-c01c8309
-c026830d
+c01c831c
+c0268320
 c17f8000
 2020235a
 20406b34
@@ -141,10 +141,10 @@
 c0048094
 202065a2
 704fda01
-20200368
+2020037b
 704fda02
-2020038a
-2040029a
+2020039d
+204002ad
 20206371
 20600000
 6fe0cec7
@@ -276,11 +276,11 @@
 dfe00003
 2020655a
 2040011d
-20400382
+20400395
 da604fc4
 20206371
 2040011d
-204003a4
+204003b7
 da604fd2
 20206371
 704fd900
@@ -348,12 +348,12 @@
 58557474
 67f18968
 7089606e
-204002a8
-204002d3
+204002bb
+204002e6
 20400164
 7041480c
 20406f4e
-202002d5
+202002e8
 20758000
 37d98200
 6fe0c11c
@@ -476,11 +476,11 @@
 58000001
 67e144f6
 7040a60a
-5800023b
+5800024b
 67e143db
-58000218
+58000228
 67e143dd
-5800022d
+5800023d
 67e143df
 580062d3
 67e143d3
@@ -523,22 +523,38 @@
 20600000
 79200407
 20206edd
+20400212
 2040676c
 2040675a
-20400211
+20400221
 202064d9
+da604ffa
+da400215
+202042e0
+6fe0cff9
+704ff900
+c000821b
+c001021d
+c001821f
+20600000
+204002ad
+20206371
+da604a7b
+20206371
+da604a30
+20206371
 da604518
-da400214
+da400224
 202042e7
 70451c02
 20404325
 2040634e
 2020639e
 1a627e00
-c0200224
-c0188222
-c00a821f
-c00a021e
+c0200234
+c0188232
+c00a822f
+c00a022e
 202064e0
 202064f4
 6fe14512
@@ -551,26 +567,26 @@
 6fe4450a
 207a0000
 20406730
-243a0238
+243a0248
 6fe44f02
 67e442d3
 20202e93
 6fe14398
-c0120230
+c0120240
 20600000
 204078ad
 7044f101
 20406730
 2040432b
-243a0238
+243a0248
 6fe44f02
 67e442d3
 20202e93
 6fe44fb0
 67e442d3
 20202e93
-20400338
-20400246
+2040034b
+20400256
 d8e00009
 20407cef
 247a0000
@@ -579,9 +595,9 @@
 20407ce1
 78547c00
 2040701b
-20200260
+20200270
 6fe144e9
-c284824b
+c284825b
 d8a045da
 df200023
 20207ca1
@@ -593,7 +609,7 @@
 1c427e00
 98460400
 20628000
-24210257
+24210267
 6fe0c9e5
 98467c00
 20610000
@@ -621,7 +637,7 @@
 67e1068c
 18e27e00
 67e1067a
-2040027d
+2040028d
 6fe1068c
 1fe22600
 6fe1067a
@@ -633,7 +649,7 @@
 1fe0a60a
 6fe10678
 1fe27200
-c2000269
+c2000279
 20600000
 1a60a405
 efe20012
@@ -644,26 +660,29 @@
 24417806
 580003e8
 98467c00
-20200287
+20200297
 1a608c04
 efe08006
-2020028a
+2020029a
 2040656b
 20406561
 20216500
-204002a0
+204002b3
 18e27e00
-c0030294
-c0038296
-c0040298
-c004829f
+c00302a4
+c00382a6
+c00402a8
+c00482b2
 20206558
 da604fb8
 20206371
 da604fc6
 20206371
-da604aa8
-20206371
+6fe0cff9
+1fe0fe01
+67e0cff9
+704ffa04
+20600000
 da604fdc
 20406730
 207a0000
@@ -690,7 +709,7 @@
 708ac200
 708ac300
 d8e00006
-204002c5
+204002d8
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -698,14 +717,14 @@
 d8e00005
 2040211c
 2040211e
-204002c5
+204002d8
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-202102ba
+202102cd
 2020214f
 2000003c
 58000f00
@@ -731,7 +750,7 @@
 6fe0c409
 67f080cd
 20000bb8
-204002e6
+204002f9
 708a08c1
 6a40c419
 df200008
@@ -742,7 +761,7 @@
 20600000
 7080cc03
 6ff08129
-c30282e7
+c30282fa
 68590164
 6049440a
 7080cc00
@@ -751,7 +770,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c0080306
+c0080319
 58005762
 67f10907
 70890103
@@ -762,7 +781,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c0080303
+c0080316
 58002bb1
 67f10907
 c6978000
@@ -771,10 +790,10 @@
 20600000
 58004189
 67f10907
-202002ff
+20200312
 58008312
 67f10907
-202002f4
+20200307
 6fe0c334
 c1000000
 c001b04a
@@ -786,7 +805,7 @@
 6fe240ad
 9840fe00
 67e240ad
-20400320
+20400333
 6fe0c0cb
 79207e04
 204023e1
@@ -814,12 +833,12 @@
 efe08011
 e8408013
 98467c00
-20228333
+20228346
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c200032d
+c2000340
 1a420400
 20600000
 da200000
@@ -829,21 +848,21 @@
 98467c00
 24417806
 20406730
-243a035a
+243a036d
 1a427e00
 18408440
 98467c00
-2421034c
+2421035f
 1a20a201
 1a217e0f
-243a033e
+243a0351
 da200000
-20400353
+20400366
 1c427e00
 67e24fd5
 20600000
 20406730
-243a035d
+243a0370
 1a227e00
 207a0000
 184085c0
@@ -854,44 +873,44 @@
 207a0000
 1fe0ffff
 67e0cfd4
-20400361
-20200354
+20400374
+20200367
 1a427e00
 184084a0
-20200342
+20200355
 1a227e00
 207a0000
 18408560
-20200351
+20200364
 da604fd9
-da400364
+da400377
 202042e0
 6fe0cfda
-c0008368
-c001038a
+c000837b
+c001039d
 20600000
 20406730
-243a0376
-204003b4
+243a0389
+204003c7
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67cb4
-20228382
+20228395
 da604fc2
-204003ac
+204003bf
 efe1003f
 1fe0fe0a
 e7e10011
 20206371
-204003b7
+204003ca
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67c5a
-20428382
+20428395
 da604fc2
-204003ac
+204003bf
 efe1003f
 1fe0fe12
 e7e10011
@@ -900,32 +919,32 @@
 da604fc4
 20406371
 da604fc2
-204003ac
+204003bf
 58000400
 e7e10011
 20600000
 20406730
-243a0398
-204003b4
+243a03ab
+204003c7
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67cc8
-202283a4
+202283b7
 da604fd0
-204003ac
+204003bf
 efe1003f
 1fe0fff8
 e7e10011
 20206371
-204003b7
+204003ca
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67c5a
-204283a4
+204283b7
 da604fd0
-204003ac
+204003bf
 efe1003f
 1fe0ffee
 e7e10011
@@ -934,7 +953,7 @@
 da604fd2
 20406371
 da604fd0
-204003ac
+204003bf
 58000a00
 e7e10011
 20600000
@@ -956,7 +975,7 @@
 7049e401
 704eb201
 7049e53c
-202003bf
+202003d2
 58000509
 67e148d6
 58003809
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/output/sched.rom	(revision 5633)
+++ /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/output/sched.rom	(working copy)
@@ -70,7 +70,7 @@
 #power on config
 mem_ui_button_gpio:ff
 
-mem_le_lap:0d 21 21 98 07 2a
+mem_le_lap:05 21 21 98 07 2a
 mem_le_name_len:
 'Lenyes LPH116
 
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/program/patch.prog	(revision 5633)
+++ /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/program/patch.prog	(working copy)
@@ -710,11 +710,37 @@
 	call p_shutter_adc_read_timer
 	call p_shutter_low_volatage_led_timer
 endif
+	call p_shutter_fun2_press_timer
 	call shutter_dy_link_key_loop_timer
 	call shutter_dy_long_key_volume_timer
 	call p_shutter_check_sleep_timer
 	branch shutter_dy_check_power_off_timer
 
+p_shutter_fun2_press_timer:
+	arg mem_shutter_fun2_press_time,regc
+	arg p_shutter_fun2_press_timeout,regb
+	branch timer_single_step
+
+p_shutter_fun2_press_timeout:
+	fetch 1,mem_shutter_fun2_press_count
+	jam 0,mem_shutter_fun2_press_count
+	beq 1,p_shutter_fun2_press_one
+	beq 2,p_shutter_fun2_press_double
+	beq 3,p_shutter_fun2_press_three
+	rtn
+
+p_shutter_fun2_press_one:
+	call p_shutter_mode_step_ptr
+	branch push_buffer_in_queue
+
+p_shutter_fun2_press_double:
+	arg mem_key5_release_new,regc
+	branch push_buffer_in_queue
+
+p_shutter_fun2_press_three:
+	arg mem_key0_release_new,regc
+	branch push_buffer_in_queue
+
 p_shutter_check_sleep_timer:
 	arg mem_shutter_sleep_timer,regc
 	arg p_shutter_sleep_timeout,regb
@@ -893,8 +919,11 @@
 	branch push_buffer_in_queue
 
 p_shutter_fun2_key_release:
-	arg mem_key5_long_press,regc
-	branch push_buffer_in_queue
+	fetch 1,mem_shutter_fun2_press_count
+	increase 1,pdata
+	store 1,mem_shutter_fun2_press_count
+	jam 4,mem_shutter_fun2_press_time
+	rtn
 
 p_shutter_mode_step_ptr:
 	arg mem_shutter_mode_step_android,regc
Index: sched/shutter_dy.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/sched/shutter_dy.dat	(revision 5633)
+++ /1121s/branch/shutter/branch/dy/yibei/yc1089s_yibei_278_fouse/sched/shutter_dy.dat	(working copy)
@@ -3,7 +3,7 @@
 #power on config
 mem_ui_button_gpio:ff
 
-mem_le_lap:0d 21 21 98 07 2a
+mem_le_lap:05 21 21 98 07 2a
 mem_le_name_len:
 'Lenyes LPH116
 
