Password followup

This commit is contained in:
Scott Lahteine 2020-08-08 20:13:15 -05:00
parent 852e5ae042
commit 8318d90e85
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ void GcodeSuite::M510() {
return;
}
if (parser.seenval('N')) {
password.value_entry = parser.ulongval('N');
if (parser.seenval('S')) {
password.value_entry = parser.ulongval('S');
if (password.value_entry < CAT(1e, PASSWORD_LENGTH)) {
password.is_set = true;