diff options
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 7f680c6643..96cd9fd0a6 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -65,14 +65,16 @@ static void button_tick(void) | |||
65 | post = true; | 65 | post = true; |
66 | repeat = true; | 66 | repeat = true; |
67 | count = REPEAT_INTERVAL; | 67 | count = REPEAT_INTERVAL; |
68 | #ifdef HAVE_RECORDER_KEYPAD | ||
69 | /* If the OFF button is pressed long enough, and we are | 68 | /* If the OFF button is pressed long enough, and we are |
70 | still alive, then the unit must be connected to a | 69 | still alive, then the unit must be connected to a |
71 | charger. Therefore we will reboot and let the original | 70 | charger. Therefore we will reboot and let the original |
72 | firmware handle the charging. */ | 71 | firmware handle the charging. */ |
72 | #ifdef HAVE_RECORDER_KEYPAD | ||
73 | if(btn == BUTTON_OFF) | 73 | if(btn == BUTTON_OFF) |
74 | system_reboot(); | 74 | #elif HAVE_PLAYER_KEYPAD |
75 | if(btn == BUTTON_STOP) | ||
75 | #endif | 76 | #endif |
77 | system_reboot(); | ||
76 | } | 78 | } |
77 | } | 79 | } |
78 | if ( post ) | 80 | if ( post ) |