Fix DC/DC startup condition check

This commit is contained in:
Martin Jaeger
2020-01-27 14:41:48 +01:00
parent 24f751b2e5
commit a457c2cc9b
+1 -1
View File
@@ -124,7 +124,7 @@ int Dcdc::check_start_conditions()
lvs->voltage > ls_voltage_max ||
lvs->voltage < ls_voltage_min ||
dev_stat.has_error(ERR_BAT_UNDERVOLTAGE | ERR_BAT_OVERVOLTAGE) ||
uptime() < (off_timestamp + restart_interval))
(int)uptime() < (off_timestamp + (int)restart_interval))
{
return 0; // no energy transfer allowed
}