Rename DC/DC operation mode and control names
New control states allow to specify the reason for derating more detailed, also considering the input side. The operation mode is now also used as a return value for check_start_conditions function to get rid of magic numbers.
This commit is contained in:
+1
-1
@@ -133,7 +133,7 @@ void control_thread()
|
||||
|
||||
// energy + soc calculation must be called exactly once per second
|
||||
#if DT_NODE_EXISTS(DT_PATH(dcdc))
|
||||
if (dcdc.state != DCDC_STATE_OFF) {
|
||||
if (dcdc.state != DCDC_CONTROL_OFF) {
|
||||
hv_terminal.energy_balance();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user