Port of lowpowerlab RFM69 Packet radio library for HopeRF RFM69H
Dependents: Recep_spi_lib Recep_spi_lib
Fork of RFM69 by
Diff: RFM69.cpp
- Revision:
- 1:cedfa200eaeb
- Parent:
- 0:db6e4ce9dc02
diff -r db6e4ce9dc02 -r cedfa200eaeb RFM69.cpp --- a/RFM69.cpp Sun Mar 08 17:13:43 2015 +0000 +++ b/RFM69.cpp Sun Dec 03 18:10:02 2017 +0000 @@ -452,6 +452,8 @@ } bool RFM69::receiveDone() { + if (_interrupt.read()) interruptHandler(); // As we are using edge triggered interrupts we need to handle the case of the interrupt being high already and not triggering an edge. + // This would be better handled with level triggered interrupts. _interrupt.disable_irq(); // re-enabled in unselect() via setMode() or via receiveBegin() if (_mode == RF69_MODE_RX && PAYLOADLEN > 0) {