We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e5cce3 commit 44a7d78Copy full SHA for 44a7d78
Marlin/src/feature/power.cpp
@@ -102,12 +102,12 @@ void Power::power_on() {
102
* Processes any PSU_POWEROFF_GCODE and makes a PS_OFF_SOUND if enabled.
103
*/
104
void Power::power_off() {
105
- SERIAL_ECHOLNPGM(STR_POWEROFF);
106
-
107
TERN_(HAS_SUICIDE, suicide());
108
109
if (!psu_on) return;
110
+ SERIAL_ECHOLNPGM(STR_POWEROFF);
+
111
#ifdef PSU_POWEROFF_GCODE
112
gcode.process_subcommands_now(F(PSU_POWEROFF_GCODE));
113
#endif
0 commit comments