Browse Source

Help hosts when password-locked (#20348)

vanilla_fb_2.0.x
Luu Lac 4 years ago
committed by GitHub
parent
commit
257dc6d173
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Marlin/src/gcode/gcode.cpp

1
Marlin/src/gcode/gcode.cpp

@ -252,6 +252,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
#if ENABLED(PASSWORD_FEATURE)
if (password.is_locked && !parser.is_command('M', 511)) {
SERIAL_ECHO_MSG(STR_PRINTER_LOCKED);
if (!no_ok) queue.ok_to_send();
return;
}
#endif

Loading…
Cancel
Save