Update battery.c

removed typo
This commit is contained in:
TheAngularity 2016-11-13 13:46:23 +01:00 committed by GitHub
parent 5cdc7f787f
commit 23294c1621
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ void updateBattery(void)
uint16_t vbatMeasured = batteryAdcToVoltage(vbatLatestADC);
/* battery has just been connected*/
if (batteryState == BATTERY_NOT_PRESENT && (!ARMING_FLAG(ARMED) || (vbat > batteryConfig->batterynotpresentlevel && ABS(vbatMeasured - batteryAdcToVoltage(vbatPreviousADC)) <= VBAT_STABLE_MAX_DELTA))) {
if (batteryState == BATTERY_NOT_PRESENT && (ARMING_FLAG(ARMED) || (vbat > batteryConfig->batterynotpresentlevel && ABS(vbatMeasured - batteryAdcToVoltage(vbatPreviousADC)) <= VBAT_STABLE_MAX_DELTA))) {
/* Actual battery state is calculated below, this is really BATTERY_PRESENT */
batteryState = BATTERY_OK;