|
@@ -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
|