Make KEEPALIVE_STATE a scoped auto-restore (#14446)
This commit is contained in:
@ -430,7 +430,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
||||
//case 191: M191(); break; // M191: Wait for chamber temperature to reach target
|
||||
#endif
|
||||
|
||||
case 105: M105(); KEEPALIVE_STATE(NOT_BUSY); return; // M105: Report Temperatures (and say "ok")
|
||||
case 105: M105(); return; // M105: Report Temperatures (and say "ok")
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
|
||||
case 155: M155(); break; // M155: Set temperature auto-report interval
|
||||
@ -796,8 +796,6 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
||||
default: parser.unknown_command_error();
|
||||
}
|
||||
|
||||
KEEPALIVE_STATE(NOT_BUSY);
|
||||
|
||||
if (!no_ok) queue.ok_to_send();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user