summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 0bd4ecd1c4..24de08f672 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -123,7 +123,7 @@ static void button_tick(void)
123 which doesn't shut down easily with the OFF 123 which doesn't shut down easily with the OFF
124 key */ 124 key */
125#ifdef HAVE_SW_POWEROFF 125#ifdef HAVE_SW_POWEROFF
126 if (btn == BUTTON_OFF && 126 if ((btn == BUTTON_OFF || btn == BUTTON_RC_STOP) &&
127#ifndef IRIVER_H100 127#ifndef IRIVER_H100
128 !charger_inserted() && 128 !charger_inserted() &&
129#endif 129#endif