Allow M42 M with other parameters (#17744)

This commit is contained in:
ellensp 2020-04-27 22:16:47 +12:00 committed by GitHub
parent 8f7f7f7c45
commit c7f9eb7b21
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,9 +56,8 @@ void GcodeSuite::M42() {
#ifdef INPUT_PULLDOWN
case 3: pinMode(pin, INPUT_PULLDOWN); break;
#endif
default: SERIAL_ECHOLNPGM("Invalid Pin Mode");
default: SERIAL_ECHOLNPGM("Invalid Pin Mode"); return;
}
return;
}
if (!parser.seenval('S')) return;