PWM switch: Fix start voltage check
Previous statement didn't consider the series multiplier in case of 24V battery.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user