diff options
-rw-r--r-- | common/charge_state_v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c index 6cd376bf16..6ca6222370 100644 --- a/common/charge_state_v2.c +++ b/common/charge_state_v2.c @@ -385,7 +385,7 @@ static void prevent_deep_discharge(void) static void notify_host_of_low_battery(void) { /* We can't tell what the current charge is. Assume it's okay. */ - if (curr.batt.flags && BATT_FLAG_BAD_STATE_OF_CHARGE) + if (curr.batt.flags & BATT_FLAG_BAD_STATE_OF_CHARGE) return; if (curr.batt.state_of_charge <= BATTERY_LEVEL_LOW && |