Port of lowpowerlab RFM69 Packet radio library for HopeRF RFM69H

Dependents:   Recep_spi_lib Recep_spi_lib

Fork of RFM69 by B Rey

Files at this revision

API Documentation at this revision

Comitter:
geekylou
Date:
Sun Dec 03 18:10:02 2017 +0000
Parent:
0:db6e4ce9dc02
Commit message:
Call the interrupt handler at read time so we can handle the case of the IRQ pin already being high.

Changed in this revision

RFM69.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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)
   {