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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index f116ad6..91b8ebd 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -205,12 +205,8 @@ static void button_tick(void)
#endif
) &&
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
-#if CONFIG_CHARGING >= CHARGING_MONITOR
- !charging_state() &&
-#else
!charger_inserted() &&
#endif
-#endif
repeat_count > POWEROFF_COUNT)
{
/* Tell the main thread that it's time to