mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
took batteryCellCount = cells; out of else statement
This commit is contained in:
parent
bc596e1f8b
commit
449e08f92f
1 changed files with 1 additions and 4 deletions
|
@ -193,11 +193,8 @@ void batteryUpdatePresence(void)
|
|||
// something is wrong, we expect 8 cells maximum (and autodetection will be problematic at 6+ cells)
|
||||
cells = 8;
|
||||
}
|
||||
else
|
||||
{
|
||||
batteryCellCount = cells;
|
||||
}
|
||||
}
|
||||
batteryWarningVoltage = batteryCellCount * batteryConfig()->vbatwarningcellvoltage;
|
||||
batteryCriticalVoltage = batteryCellCount * batteryConfig()->vbatmincellvoltage;
|
||||
lowVoltageCutoff.percentage = 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue