Rename (Dcdc|PwmSwitch)::emergency_stop to stop

The stop functions can be used in a generic way, not only in an emergency
situation. The name was misleading.
This commit is contained in:
Martin Jäger
2020-11-05 20:36:51 +01:00
parent 75e2969274
commit c6709f8f00
5 changed files with 16 additions and 13 deletions
+2 -2
View File
@@ -253,10 +253,10 @@ void high_voltage_alert()
{
// disable any sort of input
#if DT_NODE_EXISTS(DT_PATH(dcdc))
dcdc.emergency_stop();
dcdc.stop();
#endif
#if DT_NODE_EXISTS(DT_CHILD(DT_PATH(outputs), pwm_switch))
pwm_switch.emergency_stop();
pwm_switch.stop();
#endif
// do not use enter_state function, as we don't want to wait entire recharge delay
charger.state = CHG_STATE_IDLE;