Skip to content

Commit

Permalink
🚸 Fix repeating "Power Off" message (MarlinFirmware#26755)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityAutomation authored and thinkyhead committed Feb 8, 2024
1 parent 6f00f4e commit a3101a0
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 @@ -98,12 +98,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 a3101a0

Please sign in to comment.