summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/button.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 7f680c6..96cd9fd 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -65,14 +65,16 @@ static void button_tick(void)
post = true;
repeat = true;
count = REPEAT_INTERVAL;
-#ifdef HAVE_RECORDER_KEYPAD
/* If the OFF button is pressed long enough, and we are
still alive, then the unit must be connected to a
charger. Therefore we will reboot and let the original
firmware handle the charging. */
+#ifdef HAVE_RECORDER_KEYPAD
if(btn == BUTTON_OFF)
- system_reboot();
+#elif HAVE_PLAYER_KEYPAD
+ if(btn == BUTTON_STOP)
#endif
+ system_reboot();
}
}
if ( post )