summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 24de08f672..820ca250bc 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -123,7 +123,11 @@ 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#ifdef BUTTON_RC_STOP
126 if ((btn == BUTTON_OFF || btn == BUTTON_RC_STOP) && 127 if ((btn == BUTTON_OFF || btn == BUTTON_RC_STOP) &&
128#else
129 if (btn == BUTTON_OFF &&
130#endif
127#ifndef IRIVER_H100 131#ifndef IRIVER_H100
128 !charger_inserted() && 132 !charger_inserted() &&
129#endif 133#endif