Add M42 M, improve M43 (#17173)

This commit is contained in:
InsanityAutomation authored and GitHub committed 2020-03-18 16:12:51 -05:00
1 parent de45ac41ad
commit 84dec5da10
2 files changed
+22 -5

No files matched your search

+2
View File
@@ -67,6 +67,7 @@ inline void toggle_pins() {
else {
watchdog_refresh();
report_pin_state_extended(pin, ignore_protection, true, PSTR("Pulsing "));
const bool prior_mode = GET_PINMODE(pin);
#if AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
if (pin == TEENSY_E2) {
SET_OUTPUT(TEENSY_E2);
@@ -95,6 +96,7 @@ inline void toggle_pins() {
watchdog_refresh();
}
}
pinMode(pin, prior_mode);
}
SERIAL_EOL();
}