Skip to content

Commit a3101a0

Browse files
InsanityAutomationthinkyhead
authored andcommitted
🚸 Fix repeating "Power Off" message (MarlinFirmware#26755)
1 parent 6f00f4e commit a3101a0

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
@@ -98,12 +98,12 @@ void Power::power_on() {
9898
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
9999
*/
100100
void Power::power_off() {
101-
SERIAL_ECHOLNPGM(STR_POWEROFF);
102-
103101
TERN_(HAS_SUICIDE, suicide());
104102

105103
if (!psu_on) return;
106104

105+
SERIAL_ECHOLNPGM(STR_POWEROFF);
106+
107107
#ifdef PSU_POWEROFF_GCODE
108108
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
109109
#endif

0 commit comments

Comments
 (0)