SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more

Fork of SX1276Lib by Semtech

Revision:
51:aef3234bcb71
Parent:
50:43f7160e869c
Child:
53:6d3adad59633
--- a/sx1276/sx1276.cpp	Tue May 16 17:51:21 2017 +0200
+++ b/sx1276/sx1276.cpp	Wed May 17 15:40:13 2017 +0200
@@ -633,7 +633,7 @@
     return airTime;
 }
 
-void SX1276::Send( uint8_t *buffer, uint8_t size, uint8_t *header, uint8_t hsize )
+void SX1276::Send( void *buffer, int16_t size, void *header, int16_t hsize )
 {
     uint32_t txTimeout = 0;
 
@@ -664,7 +664,7 @@
                     WriteFifo( header, hsize );
                     memcpy( rxtxBuffer, header, hsize );
                 }
-				memcpy( rxtxBuffer+hsize, buffer+hsize, size );
+				memcpy( rxtxBuffer+hsize, (uint8_t *)buffer+hsize, size );
                 this->settings.FskPacketHandler.ChunkSize = 32;
             }