Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/output/otp.dat	(revision 5398)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-2a
+12
 0f
 c2
 84
@@ -24,35 +24,35 @@
 c0
 01
 01
-23
+1f
 c0
 08
 81
-2c
+28
 c0
 0a
 02
-f0
+ec
 c0
 0a
 81
-b9
+b5
 c0
 0c
 01
-c7
+c3
 c0
 0c
 81
-86
+82
 c0
 0d
 01
-3e
+3a
 c0
 12
 83
-12
+0e
 c0
 13
 80
@@ -60,11 +60,11 @@
 c0
 51
 80
-c2
+be
 c0
 52
-81
-00
+80
+fc
 c0
 53
 00
@@ -72,19 +72,19 @@
 c0
 53
 80
-98
+94
 c0
 55
 00
-ea
+e6
 c0
 55
 83
-bf
+b9
 c0
 58
 81
-d9
+d5
 c0
 62
 00
@@ -92,11 +92,11 @@
 c0
 62
 81
-ce
+ca
 c0
 6d
 02
-d9
+d5
 20
 20
 23
@@ -108,19 +108,19 @@
 c0
 12
 80
-d3
+cf
 c0
 13
 00
-d8
+d4
 c0
 1c
 83
-0c
+08
 c0
 26
 83
-10
+0c
 c1
 7f
 80
@@ -568,51 +568,35 @@
 c0
 03
 80
-92
+90
 c0
 04
 00
-96
+92
 c0
 04
 80
-97
+93
 20
 20
 65
 a2
 70
 4f
-d9
-01
-70
-4f
 da
 01
-da
-60
-4f
-b8
 20
 20
-63
-71
-70
-4f
-d9
-01
+03
+67
 70
 4f
 da
 02
-da
-60
-4f
-c6
 20
 20
-63
-71
+03
+89
 20
 60
 00
@@ -636,7 +620,7 @@
 20
 40
 00
-9e
+9a
 20
 74
 00
@@ -684,7 +668,7 @@
 20
 22
 80
-aa
+a6
 18
 e0
 8e
@@ -692,7 +676,7 @@
 20
 20
 00
-9f
+9b
 67
 e1
 4a
@@ -740,11 +724,11 @@
 20
 22
 80
-b7
+b3
 20
 20
 00
-b6
+b2
 70
 4e
 c0
@@ -796,7 +780,7 @@
 24
 3a
 00
-cc
+c8
 70
 4c
 00
@@ -808,7 +792,7 @@
 20
 40
 00
-cf
+cb
 20
 40
 65
@@ -840,7 +824,7 @@
 20
 20
 00
-c4
+c0
 df
 e0
 00
@@ -968,7 +952,7 @@
 c0
 00
 80
-f0
+ec
 20
 20
 66
@@ -984,7 +968,7 @@
 c0
 03
 00
-f4
+f0
 20
 60
 00
@@ -992,7 +976,7 @@
 20
 20
 00
-f5
+f1
 70
 4e
 aa
@@ -1012,7 +996,7 @@
 20
 20
 00
-fa
+f6
 58
 00
 04
@@ -1092,7 +1076,7 @@
 24
 3a
 01
-0f
+0b
 20
 20
 65
@@ -1116,11 +1100,11 @@
 c0
 03
 01
-18
+14
 c0
 03
 81
-1c
+18
 da
 60
 4a
@@ -1136,11 +1120,11 @@
 20
 40
 01
-20
+1c
 20
 40
 03
-85
+81
 da
 60
 4f
@@ -1152,11 +1136,11 @@
 20
 40
 01
-20
+1c
 20
 40
 03
-a8
+a3
 da
 60
 4f
@@ -1212,7 +1196,7 @@
 20
 20
 01
-23
+1f
 70
 8a
 0f
@@ -1332,7 +1316,7 @@
 20
 40
 01
-8e
+8a
 6f
 e0
 c4
@@ -1344,7 +1328,7 @@
 24
 55
 81
-3a
+36
 37
 d9
 82
@@ -1360,7 +1344,7 @@
 c0
 08
 01
-7b
+77
 6f
 e0
 c4
@@ -1404,7 +1388,7 @@
 20
 40
 01
-6d
+69
 70
 80
 43
@@ -1428,15 +1412,15 @@
 20
 40
 02
-ab
+a7
 20
 40
 02
-d6
+d2
 20
 40
 01
-67
+63
 70
 41
 48
@@ -1448,7 +1432,7 @@
 20
 20
 02
-d8
+d4
 20
 75
 80
@@ -1480,7 +1464,7 @@
 c0
 0c
 01
-73
+6f
 6f
 e0
 c4
@@ -1572,7 +1556,7 @@
 20
 20
 01
-59
+55
 6f
 e0
 c1
@@ -1580,7 +1564,7 @@
 c0
 05
 01
-89
+85
 20
 20
 22
@@ -1608,7 +1592,7 @@
 20
 35
 81
-b5
+b1
 6f
 e2
 02
@@ -1776,7 +1760,7 @@
 20
 20
 01
-9f
+9b
 20
 40
 68
@@ -1920,7 +1904,7 @@
 20
 40
 01
-d1
+cd
 20
 40
 64
@@ -1940,7 +1924,7 @@
 58
 00
 02
-3e
+3a
 67
 e1
 43
@@ -1948,7 +1932,7 @@
 58
 00
 02
-1b
+17
 67
 e1
 43
@@ -1956,7 +1940,7 @@
 58
 00
 02
-30
+2c
 67
 e1
 43
@@ -1972,7 +1956,7 @@
 58
 00
 01
-fb
+f7
 67
 e1
 43
@@ -1988,7 +1972,7 @@
 58
 00
 02
-10
+0c
 67
 e1
 43
@@ -2051,8 +2035,8 @@
 ff
 20
 40
-02
-00
+01
+fc
 20
 40
 70
@@ -2096,7 +2080,7 @@
 20
 22
 82
-0b
+07
 1f
 e2
 04
@@ -2104,7 +2088,7 @@
 20
 40
 02
-0e
+0a
 1a
 20
 a2
@@ -2112,7 +2096,7 @@
 c2
 00
 02
-05
+01
 20
 60
 00
@@ -2136,7 +2120,7 @@
 20
 40
 02
-14
+10
 20
 20
 64
@@ -2148,7 +2132,7 @@
 da
 40
 02
-17
+13
 20
 20
 42
@@ -2176,19 +2160,19 @@
 c0
 20
 02
-27
+23
 c0
 18
 82
-25
+21
 c0
 0a
 82
-22
+1e
 c0
 0a
 02
-21
+1d
 20
 20
 64
@@ -2240,7 +2224,7 @@
 24
 3a
 02
-3b
+37
 6f
 e4
 4f
@@ -2260,7 +2244,7 @@
 c0
 12
 02
-33
+2f
 20
 60
 00
@@ -2284,7 +2268,7 @@
 24
 3a
 02
-3b
+37
 6f
 e4
 4f
@@ -2311,8 +2295,12 @@
 93
 20
 40
+03
+37
+20
+40
 02
-49
+45
 d8
 e0
 00
@@ -2346,13 +2334,9 @@
 70
 1b
 20
-40
-02
-63
 20
-20
-03
-3b
+02
+5f
 6f
 e1
 44
@@ -2360,7 +2344,7 @@
 c2
 84
 82
-4e
+4a
 d8
 a0
 45
@@ -2408,7 +2392,7 @@
 24
 21
 02
-5a
+56
 6f
 e0
 c9
@@ -2520,7 +2504,7 @@
 20
 40
 02
-80
+7c
 6f
 e1
 06
@@ -2568,7 +2552,7 @@
 c2
 00
 02
-6c
+68
 20
 60
 00
@@ -2612,7 +2596,7 @@
 20
 20
 02
-8a
+86
 1a
 60
 8c
@@ -2624,7 +2608,7 @@
 20
 20
 02
-8d
+89
 20
 40
 65
@@ -2640,7 +2624,7 @@
 20
 40
 02
-a3
+9f
 18
 e2
 7e
@@ -2648,19 +2632,19 @@
 c0
 03
 02
-97
+93
 c0
 03
 82
-99
+95
 c0
 04
 02
-9b
+97
 c0
 04
 82
-a2
+9e
 20
 20
 65
@@ -2684,7 +2668,7 @@
 20
 40
 02
-9d
+99
 20
 20
 63
@@ -2796,7 +2780,7 @@
 20
 40
 02
-c8
+c4
 2a
 2f
 fe
@@ -2828,7 +2812,7 @@
 20
 40
 02
-c8
+c4
 d8
 a0
 8a
@@ -2856,7 +2840,7 @@
 20
 21
 02
-bd
+b9
 20
 20
 21
@@ -2960,7 +2944,7 @@
 20
 40
 02
-e9
+e5
 70
 8a
 08
@@ -3004,7 +2988,7 @@
 c3
 02
 82
-ea
+e6
 68
 59
 01
@@ -3040,7 +3024,7 @@
 c0
 08
 03
-09
+05
 58
 00
 57
@@ -3084,7 +3068,7 @@
 c0
 08
 03
-06
+02
 58
 00
 2b
@@ -3119,8 +3103,8 @@
 07
 20
 20
-03
 02
+fe
 58
 00
 83
@@ -3132,7 +3116,7 @@
 20
 20
 02
-f7
+f3
 6f
 e0
 c3
@@ -3180,7 +3164,7 @@
 20
 40
 03
-23
+1f
 6f
 e0
 c0
@@ -3292,7 +3276,7 @@
 20
 22
 83
-36
+32
 e7
 e0
 80
@@ -3312,7 +3296,7 @@
 c2
 00
 03
-30
+2c
 1a
 42
 04
@@ -3352,7 +3336,7 @@
 24
 3a
 03
-5d
+59
 1a
 42
 7e
@@ -3368,7 +3352,7 @@
 24
 21
 03
-4f
+4b
 1a
 20
 a2
@@ -3380,7 +3364,7 @@
 24
 3a
 03
-41
+3d
 da
 20
 00
@@ -3388,7 +3372,7 @@
 20
 40
 03
-56
+52
 1c
 42
 7e
@@ -3408,7 +3392,7 @@
 24
 3a
 03
-60
+5c
 1a
 22
 7e
@@ -3452,11 +3436,11 @@
 20
 40
 03
-64
+60
 20
 20
 03
-57
+53
 1a
 42
 7e
@@ -3468,7 +3452,7 @@
 20
 20
 03
-45
+41
 1a
 22
 7e
@@ -3484,7 +3468,7 @@
 20
 20
 03
-54
+50
 da
 60
 4f
@@ -3492,7 +3476,7 @@
 da
 40
 03
-67
+63
 20
 20
 42
@@ -3504,11 +3488,11 @@
 c0
 00
 83
-6b
+67
 c0
 01
 03
-8e
+89
 20
 60
 00
@@ -3520,11 +3504,11 @@
 24
 3a
 03
-79
+75
 20
 40
 03
-b9
+b3
 6f
 e0
 cf
@@ -3540,11 +3524,11 @@
 1f
 e6
 7c
-a0
+b4
 20
 22
 83
-85
+81
 da
 60
 4f
@@ -3552,7 +3536,7 @@
 20
 40
 03
-b1
+ab
 ef
 e1
 00
@@ -3572,7 +3556,7 @@
 20
 40
 03
-bc
+b6
 6f
 e0
 cf
@@ -3592,7 +3576,7 @@
 20
 42
 83
-85
+81
 da
 60
 4f
@@ -3600,7 +3584,7 @@
 20
 40
 03
-b1
+ab
 ef
 e1
 00
@@ -3619,10 +3603,6 @@
 71
 70
 4f
-d9
-02
-70
-4f
 db
 00
 da
@@ -3640,10 +3620,10 @@
 20
 40
 03
-b1
+ab
 58
 00
-05
+04
 00
 e7
 e1
@@ -3660,11 +3640,11 @@
 24
 3a
 03
-9c
+97
 20
 40
 03
-b9
+b3
 6f
 e0
 cf
@@ -3680,11 +3660,11 @@
 1f
 e6
 7c
-a0
+c8
 20
 22
 83
-a8
+a3
 da
 60
 4f
@@ -3692,7 +3672,7 @@
 20
 40
 03
-b1
+ab
 ef
 e1
 00
@@ -3712,7 +3692,7 @@
 20
 40
 03
-bc
+b6
 6f
 e0
 cf
@@ -3732,7 +3712,7 @@
 20
 42
 83
-a8
+a3
 da
 60
 4f
@@ -3740,7 +3720,7 @@
 20
 40
 03
-b1
+ab
 ef
 e1
 00
@@ -3759,10 +3739,6 @@
 71
 70
 4f
-d9
-02
-70
-4f
 db
 00
 da
@@ -3780,7 +3756,7 @@
 20
 40
 03
-b1
+ab
 58
 00
 0a
@@ -3868,7 +3844,7 @@
 20
 20
 03
-c4
+be
 58
 00
 05
@@ -3893,8 +3869,8 @@
 60
 00
 00
-b3
-52
+d3
+cd
 aa
 55
 40
@@ -5071,7 +5047,7 @@
 00
 07
 00
-05
+04
 87
 00
 07
@@ -5084,7 +5060,7 @@
 00
 07
 00
-05
+04
 04
 00
 07
@@ -6126,7 +6102,7 @@
 aa
 aa
 55
-f0
+ee
 83
-0c
-54
+a2
+bf
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/output/sched.rom	(revision 5398)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/output/sched.rom	(working copy)
@@ -341,8 +341,8 @@
 0a 23 00 83 00 07 e0 08 87 00 07 00 03 #25
 0a 23 00 00 00 07 e0 08 04 00 07 00 03 #26
 #fouse long press
-0a 23 00 83 00 07 00 05 87 00 07 00 03 #27
-0a 23 00 00 00 07 00 05 04 00 07 00 03 #28
+0a 23 00 83 00 07 00 04 87 00 07 00 03 #27
+0a 23 00 00 00 07 00 04 04 00 07 00 03 #28
 0a 23 00 83 00 07 00 0a 87 00 07 00 03 #29
 0a 23 00 00 00 07 00 0a 04 00 07 00 03 #2a
 #android mode step
Index: program/ble_protocol_stack/le.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/program/ble_protocol_stack/le.prog	(revision 5398)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/program/ble_protocol_stack/le.prog	(working copy)
@@ -896,7 +896,7 @@
 	fetch 1,mem_system_clk	
 	fetcht 1,mem_le_tx2m_delay
 	iadd temp,pdata
-	call sleep				//2M 前端发送比1M快
+	call sleep				//2M 脟掳露脣路垄脣脥卤脠1M驴矛
 	rshift16 access,pdata
 	rshift8 pdata,pdata
 	rshift4 pdata,temp
Index: program/ble_protocol_stack/le_l2cap_att.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/program/ble_protocol_stack/le_l2cap_att.prog	(revision 5398)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/program/ble_protocol_stack/le_l2cap_att.prog	(working copy)
@@ -616,7 +616,7 @@
 	branch memcpy_fast
 
 
-//查询server
+//虏茅脩炉server
 le_parse_att_read_by_group_type_request:
 	call le_get_search_handle_start_end_common
  	call le_get_search_att_type
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/program/patch.prog	(revision 5398)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/program/patch.prog	(working copy)
@@ -182,16 +182,12 @@
 	branch shutter_dy_key_long_press_set_key_normal
 
 p_shutter_key_fun_long_press:
-	jam 1,mem_shutter_dy_fouse_time
 	jam FOUSEUP,mem_shutter_fouse_select
-	arg mem_fouse_up_press,regc
-	branch push_buffer_in_queue
+	branch p_shutter_dy_fouseup_event
 
 p_shutter_key_fun1_long_press:
-	jam 1,mem_shutter_dy_fouse_time
 	jam FOUSEDOWN,mem_shutter_fouse_select
-	arg mem_fouse_down_press,regc
-	branch push_buffer_in_queue
+	branch p_shutter_dy_fousedown_event
 
 p_shutter_key_fun2_long_press:
 	rtn
@@ -780,6 +776,7 @@
 	branch le_l2cap_tx_update_req
 
 p_shutter_dy_process_idle:
+	call p_key_evt_ui_timer_check
 	call p_shutter_dy_shutter_send_data_to_master
 	arg key_scan_timer,queue
 	call timer_check
@@ -789,8 +786,7 @@
 	call timer_init
 	disable user
 	call keyscan_process_lpm_before
-	call p_shutter_dy_keyscan_key_process
-	branch p_key_evt_ui_timer_check
+	branch p_shutter_dy_keyscan_key_process
 
 p_shutter_dy_shutter_send_data_to_master:
 	fetch 2,mem_ui_state_map
@@ -890,7 +886,7 @@
 p_shutter_fun_key_release:
 	arg mem_fouse_up_press,regc
 	branch push_buffer_in_queue
-
+	
 p_shutter_fun1_key_release:
 	arg mem_fouse_down_press,regc
 	branch push_buffer_in_queue
@@ -1176,7 +1172,7 @@
 	fetch 1,mem_shutter_dy_fouse_count
 	increase 1,pdata
 	store 1,mem_shutter_dy_fouse_count
-	sub pdata,160,null
+	sub pdata,180,null
 	branch p_shutter_dy_fouseup_init,zero
 	arg mem_fouse_up_long_press,regc
 	call p_shutter_dy_find_value_list_position
@@ -1200,13 +1196,12 @@
 	branch push_buffer_in_queue
 
 p_shutter_dy_fouseup_init:
-	jam 2,mem_shutter_dy_fouse_time
 	jam 0,mem_shutter_dy_fouse_count
 	arg mem_fouse_up_long_release,regc
 	call push_buffer_in_queue
 	arg mem_fouse_up_long_press,regc
 	call p_shutter_dy_find_value_list_position
-	setarg 0x0500
+	setarg 0x0400
 	istore 2,rega
 	rtn
 
@@ -1217,7 +1212,7 @@
 	fetch 1,mem_shutter_dy_fouse_count
 	increase 1,pdata
 	store 1,mem_shutter_dy_fouse_count
-	sub pdata,160,null
+	sub pdata,200,null
 	branch p_shutter_dy_fousedown_init,zero
 	arg mem_fouse_down_long_press,regc
 	call p_shutter_dy_find_value_list_position
@@ -1240,9 +1235,7 @@
 	istore 2,rega
 	branch push_buffer_in_queue
 
-
 p_shutter_dy_fousedown_init:
-	jam 2,mem_shutter_dy_fouse_time
 	jam 0,mem_shutter_dy_fouse_count
 	arg mem_fouse_down_long_release,regc
 	call push_buffer_in_queue
Index: sched/shutter_dy.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/sched/shutter_dy.dat	(revision 5398)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1305_puclic_fouse/sched/shutter_dy.dat	(working copy)
@@ -274,8 +274,8 @@
 0a 23 00 83 00 07 e0 08 87 00 07 00 03 #25
 0a 23 00 00 00 07 e0 08 04 00 07 00 03 #26
 #fouse long press
-0a 23 00 83 00 07 00 05 87 00 07 00 03 #27
-0a 23 00 00 00 07 00 05 04 00 07 00 03 #28
+0a 23 00 83 00 07 00 04 87 00 07 00 03 #27
+0a 23 00 00 00 07 00 04 04 00 07 00 03 #28
 0a 23 00 83 00 07 00 0a 87 00 07 00 03 #29
 0a 23 00 00 00 07 00 0a 04 00 07 00 03 #2a
 #android mode step
