Allow M42 M with other parameters (#17744)
This commit is contained in:
parent
8f7f7f7c45
commit
c7f9eb7b21
1 changed files with 1 additions and 2 deletions
|
@ -56,9 +56,8 @@ void GcodeSuite::M42() {
|
||||||
#ifdef INPUT_PULLDOWN
|
#ifdef INPUT_PULLDOWN
|
||||||
case 3: pinMode(pin, INPUT_PULLDOWN); break;
|
case 3: pinMode(pin, INPUT_PULLDOWN); break;
|
||||||
#endif
|
#endif
|
||||||
default: SERIAL_ECHOLNPGM("Invalid Pin Mode");
|
default: SERIAL_ECHOLNPGM("Invalid Pin Mode"); return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parser.seenval('S')) return;
|
if (!parser.seenval('S')) return;
|
||||||
|
|
Reference in a new issue