1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Battery auto-detect and LPF for battery monitoring

This commit is contained in:
DarkVegetableMatter 2015-05-26 10:59:02 +01:00 committed by Dominic Clifton
parent 26ac6115e7
commit 942c89237e
10 changed files with 268 additions and 69 deletions

View file

@ -656,7 +656,7 @@ void applyLedWarningLayer(uint8_t updateNow)
if (updateNow && warningFlashCounter == 0) {
warningFlags = WARNING_FLAG_NONE;
if (feature(FEATURE_VBAT) && calculateBatteryState() != BATTERY_OK) {
if (feature(FEATURE_VBAT) && getBatteryState() != BATTERY_OK) {
warningFlags |= WARNING_FLAG_LOW_BATTERY;
}
if (feature(FEATURE_FAILSAFE) && failsafeIsActive()) {