Browse Source

Try ISR_ALIASOF for Endstop Interrupts

Scott Lahteine 5 years ago
parent
commit
bfcf570d68
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      Marlin/src/HAL/HAL_AVR/endstop_interrupts.h

+ 3
- 4
Marlin/src/HAL/HAL_AVR/endstop_interrupts.h View File

@@ -85,22 +85,21 @@ void pciSetup(const int8_t pin) {
85 85
   SBI(PCICR, digitalPinToPCICRbit(pin)); // enable interrupt for the group
86 86
 }
87 87
 
88
-
89 88
 // Handlers for pin change interrupts
90 89
 #ifdef PCINT0_vect
91 90
   ISR(PCINT0_vect) { endstop_ISR(); }
92 91
 #endif
93 92
 
94 93
 #ifdef PCINT1_vect
95
-  ISR(PCINT1_vect) { endstop_ISR(); }
94
+  ISR(PCINT1_vect, ISR_ALIASOF(PCINT0_vect));
96 95
 #endif
97 96
 
98 97
 #ifdef PCINT2_vect
99
-  ISR(PCINT2_vect) { endstop_ISR(); }
98
+  ISR(PCINT2_vect, ISR_ALIASOF(PCINT0_vect));
100 99
 #endif
101 100
 
102 101
 #ifdef PCINT3_vect
103
-  ISR(PCINT3_vect) { endstop_ISR(); }
102
+  ISR(PCINT3_vect, ISR_ALIASOF(PCINT0_vect));
104 103
 #endif
105 104
 
106 105
 void setup_endstop_interrupts( void ) {

Loading…
Cancel
Save