mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +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)
|
// something is wrong, we expect 8 cells maximum (and autodetection will be problematic at 6+ cells)
|
||||||
cells = 8;
|
cells = 8;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
batteryCellCount = cells;
|
batteryCellCount = cells;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
batteryWarningVoltage = batteryCellCount * batteryConfig()->vbatwarningcellvoltage;
|
batteryWarningVoltage = batteryCellCount * batteryConfig()->vbatwarningcellvoltage;
|
||||||
batteryCriticalVoltage = batteryCellCount * batteryConfig()->vbatmincellvoltage;
|
batteryCriticalVoltage = batteryCellCount * batteryConfig()->vbatmincellvoltage;
|
||||||
lowVoltageCutoff.percentage = 100;
|
lowVoltageCutoff.percentage = 100;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue