Skip to content

Commit

Permalink
Merge pull request iNavFlight#3265 from teckel12/te_make-current-mete…
Browse files Browse the repository at this point in the history
…r-feature-work

make isAmperageConfigured respect FEATURE_CURRENT_METER and not just current_meter_type
  • Loading branch information
digitalentity authored Jun 2, 2018
2 parents ff60ce8 + 25697c0 commit 59864b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/sensors/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ uint32_t getBatteryRemainingCapacity(void)

bool isAmperageConfigured(void)
{
return batteryConfig()->current.type != CURRENT_SENSOR_NONE;
return feature(FEATURE_CURRENT_METER) && batteryConfig()->current.type != CURRENT_SENSOR_NONE;
}

int32_t getAmperage(void)
Expand Down

0 comments on commit 59864b8

Please sign in to comment.