Skip to content

Commit df98bd2

Browse files
committed
💥 Change 'M42 M' to 'M42 T'
1 parent be8f4f4 commit df98bd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/gcode/control/M42.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void protected_pin_err() {
5252
* S<byte> Pin status from 0 - 255
5353
* I Flag to ignore Marlin's pin protection
5454
*
55-
* M<mode> Pin mode: 0=INPUT 1=OUTPUT 2=INPUT_PULLUP 3=INPUT_PULLDOWN
55+
* T<mode> Pin mode: 0=INPUT 1=OUTPUT 2=INPUT_PULLUP 3=INPUT_PULLDOWN
5656
*/
5757
void GcodeSuite::M42() {
5858
const int pin_index = PARSED_PIN_INDEX('P', GET_PIN_MAP_INDEX(LED_PIN));
@@ -63,7 +63,7 @@ void GcodeSuite::M42() {
6363
if (!parser.boolval('I') && pin_is_protected(pin)) return protected_pin_err();
6464

6565
bool avoidWrite = false;
66-
if (parser.seenval('M')) {
66+
if (parser.seenval('T')) {
6767
switch (parser.value_byte()) {
6868
case 0: pinMode(pin, INPUT); avoidWrite = true; break;
6969
case 1: pinMode(pin, OUTPUT); break;

0 commit comments

Comments
 (0)