File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 91
91
#define RFM_IRQ 2 // PD1, pin 19, INT1, Digital2
92
92
#define SS_DDR DDRB
93
93
#define SS_PORT PORTB
94
- #define SS_BIT 6 // Dig10, PB6
94
+ #define SS_BIT 6 // PB6, pin 30, Digital10
95
95
96
96
#define SPI_SS 10 // PB6, pin 30, Digital10
97
97
#define SPI_MISO 14 // PB3, pin 11, Digital14
@@ -294,7 +294,11 @@ uint16_t rf12_control(uint16_t cmd) {
294
294
bitClear (PCICR, PCIE2);
295
295
#endif
296
296
#else
297
- bitClear (EIMSK, INT1);
297
+ #if defined(__AVR_ATmega32U4__) // Arduino Leonardo, YUN
298
+ bitClear (EIMSK, INT1);
299
+ #else
300
+ bitClear (EIMSK, INT0);
301
+ #endif
298
302
#endif
299
303
uint16_t r = rf12_xferSlow (cmd);
300
304
#if PINCHG_IRQ
@@ -306,7 +310,11 @@ uint16_t rf12_control(uint16_t cmd) {
306
310
bitSet (PCICR, PCIE2);
307
311
#endif
308
312
#else
309
- bitSet (EIMSK, INT1);
313
+ #if defined(__AVR_ATmega32U4__) // Arduino Leonardo, YUN
314
+ bitSet (EIMSK, INT1);
315
+ #else
316
+ bitSet (EIMSK, INT0);
317
+ #endif
310
318
#endif
311
319
#else
312
320
// ATtiny
You can’t perform that action at this time.
0 commit comments