PWM switch: Fix start voltage check

Previous statement didn't consider the series multiplier in case of 24V
battery.
This commit is contained in:
Martin Jäger
2020-11-05 20:38:55 +01:00
parent 1a29aa1a6e
commit 7cd89bc04a
+1 -1
View File
@@ -118,7 +118,7 @@ void PwmSwitch::control()
}
else {
if (bus->sink_current_margin > 0 // charging allowed
&& bus->voltage < bus->sink_voltage_bound
&& bus->voltage < bus->sink_control_voltage()
&& ext_voltage > bus->voltage + offset_voltage_start
&& uptime() > (off_timestamp + restart_interval)
&& enable == true)