Correction in RX config error. If REG_LR_PAYLOADLENGTH and REG_LR_PAYLOADMAXLENGTH is not set, the RX is limited to 64 bytes.

Fork of SX1276Lib by Semtech

Revision:
21:2e496deb7858
Parent:
13:618826a997e2
Child:
22:7f3aab69cca9
diff -r e05596ba4166 -r 2e496deb7858 radio/radio.cpp
--- a/radio/radio.cpp	Tue Oct 20 12:58:58 2015 +0000
+++ b/radio/radio.cpp	Thu Nov 26 10:39:03 2015 +0000
@@ -14,15 +14,7 @@
 */
 #include "radio.h"
 
-Radio::Radio( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ), 
-              void ( *rxTimeout ) ( ), void ( *rxError ) ( ), void ( *fhssChangeChannel ) ( uint8_t channelIndex ), void ( *cadDone ) ( bool channelActivityDetected ) )
+Radio::Radio( RadioEvents_t *events )
 {
-    this->txDone = txDone;
-    this->txTimeout = txTimeout;
-    this->rxDone = rxDone;
-    this->rxTimeout = rxTimeout;
-    this->rxError = rxError;
-    this->fhssChangeChannel = fhssChangeChannel;
-    this->cadDone = cadDone;
+    this->RadioEvents = events;
 }
-