Skip to content

Commit

Permalink
🚸 Fix repeating "Power Off" message (#26755)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityAutomation authored Feb 1, 2024
1 parent d62f45b commit 5a87bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/feature/power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ void Power::power_on() {
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
*/
void Power::power_off() {
SERIAL_ECHOLNPGM(STR_POWEROFF);

TERN_(HAS_SUICIDE, suicide());

if (!psu_on) return;

SERIAL_ECHOLNPGM(STR_POWEROFF);

#ifdef PSU_POWEROFF_GCODE
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
#endif
Expand Down

0 comments on commit 5a87bea

Please sign in to comment.