diff options
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 0c17fce4c6..143d4570e4 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -284,7 +284,7 @@ static void button_tick(void) | |||
284 | #else | 284 | #else |
285 | if (btn == POWEROFF_BUTTON && | 285 | if (btn == POWEROFF_BUTTON && |
286 | #endif | 286 | #endif |
287 | #ifndef HAVE_POWEROFF_WHILE_CHARGING | 287 | #if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING) |
288 | !charger_inserted() && | 288 | !charger_inserted() && |
289 | #endif | 289 | #endif |
290 | repeat_count > POWEROFF_COUNT) | 290 | repeat_count > POWEROFF_COUNT) |