Fix typo in Battery.cpp
When the limit is valid, use the actual configured limit, not the bool value :)
This commit is contained in:
parent
2454cead03
commit
28c0c9d7a5
@ -108,7 +108,7 @@ float BatteryClass::getDischargeCurrentLimit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dischargeCurrentValid) {
|
if (dischargeCurrentValid) {
|
||||||
return dischargeCurrentValid;
|
return dischargeCurrentLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FLT_MAX;
|
return FLT_MAX;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user