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

Fix bug where current meter didn't work unless VBAT feature was enabled.

This commit is contained in:
Dominic Clifton 2015-02-03 16:20:14 +00:00
parent 6de42dd0de
commit 8aee0b25e2
2 changed files with 2 additions and 3 deletions

View file

@ -387,8 +387,7 @@ void init(void)
// Now that everything has powered up the voltage and cell count be determined.
// Check battery type/voltage
if (feature(FEATURE_VBAT))
if (feature(FEATURE_VBAT | FEATURE_CURRENT_METER))
batteryInit(&masterConfig.batteryConfig);
#ifdef DISPLAY