Skip to content

Commit 5a87bea

Browse files
🚸 Fix repeating "Power Off" message (MarlinFirmware#26755)
1 parent d62f45b commit 5a87bea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/feature/power.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ void Power::power_on() {
102102
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
103103
*/
104104
void Power::power_off() {
105-
SERIAL_ECHOLNPGM(STR_POWEROFF);
106-
107105
TERN_(HAS_SUICIDE, suicide());
108106

109107
if (!psu_on) return;
110108

109+
SERIAL_ECHOLNPGM(STR_POWEROFF);
110+
111111
#ifdef PSU_POWEROFF_GCODE
112112
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
113113
#endif

0 commit comments

Comments
 (0)