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 -4
View File
@@ -270,9 +270,7 @@ __weak void Dcdc::control()
}
if (stop_reason != NULL) {
half_bridge_stop();
state = DCDC_CONTROL_OFF;
off_timestamp = uptime();
stop();
printf("DC/DC Stop: %s.\n", stop_reason);
}
}
@@ -306,7 +304,7 @@ void Dcdc::test()
}
}
void Dcdc::emergency_stop()
void Dcdc::stop()
{
half_bridge_stop();
state = DCDC_CONTROL_OFF;