🚸 Fix repeating "Power Off" message (#26755)
This commit is contained in:
parent
6f00f4ebef
commit
a3101a03ff
@ -98,12 +98,12 @@ void Power::power_on() {
|
|||||||
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
|
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
|
||||||
*/
|
*/
|
||||||
void Power::power_off() {
|
void Power::power_off() {
|
||||||
SERIAL_ECHOLNPGM(STR_POWEROFF);
|
|
||||||
|
|
||||||
TERN_(HAS_SUICIDE, suicide());
|
TERN_(HAS_SUICIDE, suicide());
|
||||||
|
|
||||||
if (!psu_on) return;
|
if (!psu_on) return;
|
||||||
|
|
||||||
|
SERIAL_ECHOLNPGM(STR_POWEROFF);
|
||||||
|
|
||||||
#ifdef PSU_POWEROFF_GCODE
|
#ifdef PSU_POWEROFF_GCODE
|
||||||
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
|
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user