🐛 Fix conditional M81 suicide (#23549)

This commit is contained in:
John Lagonikas
2022-01-19 10:13:47 +02:00
committed by Scott Lahteine
parent 6f82d1befb
commit 7b4f5108ac
8 changed files with 27 additions and 10 deletions

View File

@ -107,7 +107,10 @@ void GcodeSuite::M81() {
}
#endif
if (delayed_power_off) return;
if (delayed_power_off) {
SERIAL_ECHOLNPGM(STR_DELAYED_POWEROFF);
return;
}
#if HAS_SUICIDE
suicide();