Improve load voltage limits setup and update

This commit is contained in:
Martin Jaeger
2020-02-19 14:34:40 +01:00
committed by Martin Jäger
parent cdb9183c11
commit 6af8e6d93d
9 changed files with 61 additions and 47 deletions
+8
View File
@@ -216,3 +216,11 @@ void LoadOutput::stop(uint32_t error_flag)
oc_timestamp = uptime();
}
}
void LoadOutput::set_voltage_limits(float lvd, float lvr, float ov)
{
disconnect_voltage = lvd;
reconnect_voltage = lvr;
overvoltage = ov;
}