diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 453c3361c0..100f4be2ed 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -1184,7 +1184,7 @@ static void handle_sleep_timer(void) { if (TIME_AFTER(current_tick, sleeptimer_endtick)) { if (usb_inserted() -#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) +#if CONFIG_CHARGING || charger_input_state != NO_CHARGER #endif ) {