Make LED_POWER blip even in critical battery (#9545)
This commit is contained in:
co-authored by
GitHub
parent
eb145f8adc
commit
4ce554e09d
@@ -93,19 +93,17 @@ int32_t StatusLEDModule::runOnce()
|
|||||||
my_interval = 250;
|
my_interval = 250;
|
||||||
if (POWER_LED_starttime + 2000 < millis()) {
|
if (POWER_LED_starttime + 2000 < millis()) {
|
||||||
doing_fast_blink = false;
|
doing_fast_blink = false;
|
||||||
|
CHARGE_LED_state = LED_STATE_OFF;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
CHARGE_LED_state = LED_STATE_OFF;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
if (power_state != charging && power_state != charged && !doing_fast_blink) {
|
||||||
if (doing_fast_blink) {
|
if (CHARGE_LED_state == LED_STATE_ON) {
|
||||||
CHARGE_LED_state = LED_STATE_OFF;
|
CHARGE_LED_state = LED_STATE_OFF;
|
||||||
doing_fast_blink = false;
|
|
||||||
my_interval = 999;
|
my_interval = 999;
|
||||||
} else {
|
} else {
|
||||||
CHARGE_LED_state = LED_STATE_ON;
|
CHARGE_LED_state = LED_STATE_ON;
|
||||||
doing_fast_blink = true;
|
|
||||||
my_interval = 1;
|
my_interval = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user