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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user