ST-DEVKIT-LRWAN

Dependents:   DISCO-L072CZ-LRWAN1-base

Fork of SX1276GenericLib by Helmut Tschemernjak

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;
             }