Browse Source

Allow M42 M with other parameters (#17744)

vanilla_fb_2.0.x
ellensp 5 years ago
committed by GitHub
parent
commit
c7f9eb7b21
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Marlin/src/gcode/control/M42.cpp

3
Marlin/src/gcode/control/M42.cpp

@ -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;

Loading…
Cancel
Save