We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d7fca commit bca873dCopy full SHA for bca873d
Marlin/src/feature/power.cpp
@@ -98,12 +98,12 @@ void Power::power_on() {
98
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
99
*/
100
void Power::power_off() {
101
- SERIAL_ECHOLNPGM(STR_POWEROFF);
102
-
103
TERN_(HAS_SUICIDE, suicide());
104
105
if (!psu_on) return;
106
+ SERIAL_ECHOLNPGM(STR_POWEROFF);
+
107
#ifdef PSU_POWEROFF_GCODE
108
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
109
#endif
0 commit comments