diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 065690fdb3..f71eb45430 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -682,7 +682,7 @@ static void power_thread(void) while (1) { -#if CONFIG_CHARGING >= CHARGING_MONITOR +#if CONFIG_CHARGING unsigned int pwr = power_input_status(); #ifdef HAVE_BATTERY_SWITCH if ((pwr ^ power_thread_inputs) & POWER_INPUT_BATTERY) {