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:
parent
6de42dd0de
commit
8aee0b25e2
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue