Skip to content

Commit

Permalink
Allow M42 M with other parameters (MarlinFirmware#17744)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and Emmanuel Viala committed Aug 21, 2020
1 parent bd58ac2 commit d048291
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Marlin/src/gcode/control/M42.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d048291

Please sign in to comment.