mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Fixed logging of 'amperageLatest' when non-ADC source is used.
This commit is contained in:
parent
bbb8b6f6e1
commit
a9c3e1a7a7
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ static bool testBlackboxConditionUncached(FlightLogFieldCondition condition)
|
||||||
return batteryConfig()->voltageMeterSource != VOLTAGE_METER_NONE;
|
return batteryConfig()->voltageMeterSource != VOLTAGE_METER_NONE;
|
||||||
|
|
||||||
case FLIGHT_LOG_FIELD_CONDITION_AMPERAGE_ADC:
|
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:
|
case FLIGHT_LOG_FIELD_CONDITION_SONAR:
|
||||||
#ifdef USE_SONAR
|
#ifdef USE_SONAR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue