1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Fixed logging of 'amperageLatest' when non-ADC source is used.

This commit is contained in:
mikeller 2017-11-07 00:34:12 +13:00
parent bbb8b6f6e1
commit a9c3e1a7a7

View file

@ -429,7 +429,7 @@ static bool testBlackboxConditionUncached(FlightLogFieldCondition condition)
return batteryConfig()->voltageMeterSource != VOLTAGE_METER_NONE;
case FLIGHT_LOG_FIELD_CONDITION_AMPERAGE_ADC:
return batteryConfig()->currentMeterSource == CURRENT_METER_ADC;
return (batteryConfig()->currentMeterSource != CURRENT_METER_NONE) && (batteryConfig()->currentMeterSource != CURRENT_METER_VIRTUAL);
case FLIGHT_LOG_FIELD_CONDITION_SONAR:
#ifdef USE_SONAR