mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-03 15:14:53 -04:00
Fix potential bugs
This commit is contained in:
parent
1d62fdd52e
commit
a39357d332
2 changed files with 5 additions and 5 deletions
|
@ -645,7 +645,7 @@ void sx126x::onReceive(void(*callback)(uint8_t, int))
|
|||
_spiModem->usingInterrupt(digitalPinToInterrupt(_dio0));
|
||||
#endif
|
||||
// make function available
|
||||
extern void (*onIntRise[INTERFACE_COUNT])();
|
||||
extern void (*onIntRise[INTERFACE_COUNT])(void);
|
||||
|
||||
attachInterrupt(digitalPinToInterrupt(_dio0), onIntRise[_index], RISING);
|
||||
} else {
|
||||
|
@ -1297,7 +1297,7 @@ void sx127x::onReceive(void(*callback)(uint8_t, int)) {
|
|||
#endif
|
||||
|
||||
// make function available
|
||||
extern void (*onIntRise[INTERFACE_COUNT])();
|
||||
extern void (*onIntRise[INTERFACE_COUNT])(void);
|
||||
|
||||
attachInterrupt(digitalPinToInterrupt(_dio0), onIntRise[_index], RISING);
|
||||
} else {
|
||||
|
@ -2081,7 +2081,7 @@ void sx128x::onReceive(void(*callback)(uint8_t, int))
|
|||
#endif
|
||||
|
||||
// make function available
|
||||
extern void (*onIntRise[INTERFACE_COUNT])();
|
||||
extern void (*onIntRise[INTERFACE_COUNT])(void);
|
||||
|
||||
attachInterrupt(digitalPinToInterrupt(_dio0), onIntRise[_index], RISING);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue