forked from Archive/PX4-Autopilot
batterry_status: fix checking default a_per_v
This commit is contained in:
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;
|
||||
|
|
Loading…
Reference in New Issue