batterry_status: fix checking default a_per_v

This commit is contained in:
Oleg
2020-08-28 04:47:27 +03:00
committed by Daniel Agar
parent c3a410e19c
commit af9c6e6fce
@@ -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;