summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-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 af15f1cf94..b4ab7203a3 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -127,7 +127,7 @@ static void button_tick(void)
#else
if (btn == BUTTON_OFF &&
#endif
-#ifndef IRIVER_H100
+#ifndef HAVE_POWEROFF_WHILE_CHARGING
!charger_inserted() &&
#endif
repeat_count > POWEROFF_COUNT)