Browse Source

Restore LPC1768_PIN_INTERRUPT_M, apply to Z3

- In reference to #12166
Scott Lahteine 6 years ago
parent
commit
c31e1735dd
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/src/HAL/HAL_LPC1768/endstop_interrupts.h

+ 6
- 0
Marlin/src/HAL/HAL_LPC1768/endstop_interrupts.h View File

@@ -90,9 +90,15 @@ void setup_endstop_interrupts(void) {
90 90
     attachInterrupt(digitalPinToInterrupt(Z2_MIN_PIN), endstop_ISR, CHANGE);
91 91
   #endif
92 92
   #if HAS_Z3_MAX
93
+    #if !LPC1768_PIN_INTERRUPT_M(Z3_MIN_PIN)
94
+      #error "Z3_MIN_PIN is not an INTERRUPT capable pin."
95
+    #endif
93 96
     attachInterrupt(digitalPinToInterrupt(Z3_MAX_PIN), endstop_ISR, CHANGE);
94 97
   #endif
95 98
   #if HAS_Z3_MIN
99
+    #if !LPC1768_PIN_INTERRUPT_M(Z3_MIN_PIN)
100
+      #error "Z3_MIN_PIN is not an INTERRUPT capable pin."
101
+    #endif
96 102
     attachInterrupt(digitalPinToInterrupt(Z3_MIN_PIN), endstop_ISR, CHANGE);
97 103
   #endif
98 104
   #if HAS_Z_MIN_PROBE_PIN

Loading…
Cancel
Save