batterry_status: fix checking default a_per_v

This commit is contained in:
Oleg
2020-08-28 04:47:27 +03:00
committed by GitHub
parent 8869cb5e4a
commit a18f22bd91
@@ -116,7 +116,7 @@ AnalogBattery::updateParams()
}
}
if (_analog_params.a_per_v <= 0.0f) {
if (_analog_params.a_per_v < 0.0f) {
/* apply scaling according to defaults if set to default */
_analog_params.a_per_v = BOARD_BATTERY1_A_PER_V;