Commit df98bd2 1 parent be8f4f4 commit df98bd2 Copy full SHA for df98bd2
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void protected_pin_err() {
52
52
* S<byte> Pin status from 0 - 255
53
53
* I Flag to ignore Marlin's pin protection
54
54
*
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
56
56
*/
57
57
void GcodeSuite::M42 () {
58
58
const int pin_index = PARSED_PIN_INDEX (' P' , GET_PIN_MAP_INDEX (LED_PIN));
@@ -63,7 +63,7 @@ void GcodeSuite::M42() {
63
63
if (!parser.boolval (' I' ) && pin_is_protected (pin)) return protected_pin_err ();
64
64
65
65
bool avoidWrite = false ;
66
- if (parser.seenval (' M ' )) {
66
+ if (parser.seenval (' T ' )) {
67
67
switch (parser.value_byte ()) {
68
68
case 0 : pinMode (pin, INPUT); avoidWrite = true ; break ;
69
69
case 1 : pinMode (pin, OUTPUT); break ;
You can’t perform that action at this time.
0 commit comments