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
No known key found for this signature in database
GPG Key ID: FD3CBA98017A69DE
1 changed files with 1 additions and 1 deletions

View File

@ -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;