Browse Source

Fix 'M43 T' to use 'L' as last pin

- The documentation is correct. The code was wrong.
pull/1/head
Scott Lahteine 6 years ago
parent
commit
3cbc3ecdd7
  1. 2
      Marlin/src/gcode/config/M43.cpp

2
Marlin/src/gcode/config/M43.cpp

@ -38,7 +38,7 @@ inline void toggle_pins() {
const bool ignore_protection = parser.boolval('I');
const int repeat = parser.intval('R', 1),
start = PARSED_PIN_INDEX('S', 0),
end = PARSED_PIN_INDEX('E', NUM_DIGITAL_PINS - 1),
end = PARSED_PIN_INDEX('L', NUM_DIGITAL_PINS - 1),
wait = parser.intval('W', 500);
for (uint8_t i = start; i <= end; i++) {

Loading…
Cancel
Save