|
@@ -47,13 +47,13 @@ inline void toggle_pins() {
|
47
|
47
|
|
48
|
48
|
for (uint8_t i = start; i <= end; i++) {
|
49
|
49
|
pin_t pin = GET_PIN_MAP_PIN(i);
|
50
|
|
- //report_pin_state_extended(pin, ignore_protection, false);
|
51
|
50
|
if (!VALID_PIN(pin)) continue;
|
52
|
|
- if (!ignore_protection && pin_is_protected(pin)) {
|
|
51
|
+ if (M43_NEVER_TOUCH(i) || (!ignore_protection && pin_is_protected(pin))) {
|
53
|
52
|
report_pin_state_extended(pin, ignore_protection, true, "Untouched ");
|
54
|
53
|
SERIAL_EOL();
|
55
|
54
|
}
|
56
|
55
|
else {
|
|
56
|
+ watchdog_reset();
|
57
|
57
|
report_pin_state_extended(pin, ignore_protection, true, "Pulsing ");
|
58
|
58
|
#if AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
|
59
|
59
|
if (pin == TEENSY_E2) {
|
|
@@ -77,12 +77,12 @@ inline void toggle_pins() {
|
77
|
77
|
{
|
78
|
78
|
pinMode(pin, OUTPUT);
|
79
|
79
|
for (int16_t j = 0; j < repeat; j++) {
|
80
|
|
- extDigitalWrite(pin, 0); safe_delay(wait);
|
81
|
|
- extDigitalWrite(pin, 1); safe_delay(wait);
|
82
|
|
- extDigitalWrite(pin, 0); safe_delay(wait);
|
|
80
|
+ watchdog_reset(); extDigitalWrite(pin, 0); safe_delay(wait);
|
|
81
|
+ watchdog_reset(); extDigitalWrite(pin, 1); safe_delay(wait);
|
|
82
|
+ watchdog_reset(); extDigitalWrite(pin, 0); safe_delay(wait);
|
|
83
|
+ watchdog_reset();
|
83
|
84
|
}
|
84
|
85
|
}
|
85
|
|
-
|
86
|
86
|
}
|
87
|
87
|
SERIAL_EOL();
|
88
|
88
|
}
|
|
@@ -277,7 +277,7 @@ void GcodeSuite::M43() {
|
277
|
277
|
for (uint8_t i = first_pin; i <= last_pin; i++) {
|
278
|
278
|
pin_t pin = GET_PIN_MAP_PIN(i);
|
279
|
279
|
if (!VALID_PIN(pin)) continue;
|
280
|
|
- if (!ignore_protection && pin_is_protected(pin)) continue;
|
|
280
|
+ if (M43_NEVER_TOUCH(i) || (!ignore_protection && pin_is_protected(pin))) continue;
|
281
|
281
|
pinMode(pin, INPUT_PULLUP);
|
282
|
282
|
delay(1);
|
283
|
283
|
/*
|
|
@@ -300,7 +300,7 @@ void GcodeSuite::M43() {
|
300
|
300
|
for (uint8_t i = first_pin; i <= last_pin; i++) {
|
301
|
301
|
pin_t pin = GET_PIN_MAP_PIN(i);
|
302
|
302
|
if (!VALID_PIN(pin)) continue;
|
303
|
|
- if (!ignore_protection && pin_is_protected(pin)) continue;
|
|
303
|
+ if (M43_NEVER_TOUCH(i) || (!ignore_protection && pin_is_protected(pin))) continue;
|
304
|
304
|
const byte val =
|
305
|
305
|
/*
|
306
|
306
|
IS_ANALOG(pin)
|