diff options
-rw-r--r-- | firmware/powermgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
682 | 682 | ||
683 | while (1) | 683 | while (1) |
684 | { | 684 | { |
685 | #if CONFIG_CHARGING >= CHARGING_MONITOR | 685 | #if CONFIG_CHARGING |
686 | unsigned int pwr = power_input_status(); | 686 | unsigned int pwr = power_input_status(); |
687 | #ifdef HAVE_BATTERY_SWITCH | 687 | #ifdef HAVE_BATTERY_SWITCH |
688 | if ((pwr ^ power_thread_inputs) & POWER_INPUT_BATTERY) { | 688 | if ((pwr ^ power_thread_inputs) & POWER_INPUT_BATTERY) { |