Help hosts when password-locked (#20348)
This commit is contained in:
parent
564e2e865c
commit
f42d15437b
|
@ -252,6 +252,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
||||||
#if ENABLED(PASSWORD_FEATURE)
|
#if ENABLED(PASSWORD_FEATURE)
|
||||||
if (password.is_locked && !parser.is_command('M', 511)) {
|
if (password.is_locked && !parser.is_command('M', 511)) {
|
||||||
SERIAL_ECHO_MSG(STR_PRINTER_LOCKED);
|
SERIAL_ECHO_MSG(STR_PRINTER_LOCKED);
|
||||||
|
if (!no_ok) queue.ok_to_send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue