1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
diff --git a/apps/keymaps/keymap-e200.c b/apps/keymaps/keymap-e200.c
index aca8a9d..960e9a7 100644
--- a/apps/keymaps/keymap-e200.c
+++ b/apps/keymaps/keymap-e200.c
@@ -85,6 +85,8 @@ static const struct button_mapping button_context_wps[]  = {

     { ACTION_WPS_PITCHSCREEN,   BUTTON_SELECT|BUTTON_UP,      BUTTON_SELECT },
     { ACTION_WPS_ID3SCREEN,     BUTTON_SELECT|BUTTON_DOWN,    BUTTON_SELECT },
+
+    { ACTION_STD_KEYLOCK,       BUTTON_REC|BUTTON_SELECT,      BUTTON_NONE },

     LAST_ITEM_IN_LIST
 }; /* button_context_wps */
diff --git a/firmware/target/arm/as3525/button-e200v2-fuze.c b/firmware/target/arm/as3525/button-e200v2-fuze.c
index 2cbdcf5..8d5daff 100644
--- a/firmware/target/arm/as3525/button-e200v2-fuze.c
+++ b/firmware/target/arm/as3525/button-e200v2-fuze.c
@@ -38,22 +38,12 @@ extern void scrollwheel(unsigned wheel_value);
 #endif

 /* Buttons */
-static bool hold_button     = false;
-#ifndef BOOTLOADER
-static bool hold_button_old = false;
-#endif
-
 void button_init_device(void)
 {
     GPIOA_DIR |= (1<<1);     
     GPIOA_PIN(1) = (1<<1);
 }

-bool button_hold(void)
-{
-    return hold_button;
-}
-
 unsigned short button_read_dbop(void)
 {
     unsigned dbop_din = dbop_read_input();
@@ -77,23 +67,6 @@ int button_read_device(void)

     dbop_din = button_read_dbop();

-    /* hold button handling */
-    hold_button = ((dbop_din & (1<<12)) != 0);
-#ifndef BOOTLOADER
-    /* light handling */
-    if (hold_button != hold_button_old)
-    {
-        hold_button_old = hold_button;
-        backlight_hold_changed(hold_button);
-    }
-#endif /* BOOTLOADER */
-    if (hold_button) {
-#ifdef SANSA_FUZE
-        power_counter = HZ;
-#endif
-        return 0;
-    }
-
     /* push button handling */
     if ((dbop_din & (1 << 2)) == 0)
         btn |= BUTTON_UP;
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-target.h b/firmware/target/arm/as3525/sansa-e200v2/button-target.h
index 7a0e9e5..5192b73 100644
--- a/firmware/target/arm/as3525/sansa-e200v2/button-target.h
+++ b/firmware/target/arm/as3525/sansa-e200v2/button-target.h
@@ -25,9 +25,6 @@
 #include <stdbool.h>
 #include "config.h"

-#define HAS_BUTTON_HOLD
-
-bool button_hold(void);
 void button_init_device(void);
 int button_read_device(void);
 unsigned short button_read_dbop(void);