r g / SX1276GenericLib-us915

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong

Fork of SX1276GenericLib by Helmut Tschemernjak

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Sat May 27 23:02:56 2017 +0200
Parent:
58:113d2ef978d2
Child:
60:75426c142f6e
Commit message:
Changed TimeOnAir to 16 bit packet size, Lora can handle up to 2048

Changed in this revision

radio/radio.h Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276.h Show annotated file Show diff for this revision Revisions of this file
--- a/radio/radio.h	Thu May 25 21:56:39 2017 +0200
+++ b/radio/radio.h	Sat May 27 23:02:56 2017 +0200
@@ -341,7 +341,7 @@
      *
      * @retval airTime        Computed airTime for the given packet payload length
      */
-    virtual uint32_t TimeOnAir ( RadioModems_t modem, uint8_t pktLen ) = 0;
+    virtual uint32_t TimeOnAir ( RadioModems_t modem, int16_t pktLen ) = 0;
     
     /*!
      * @brief Sends the buffer of size. Prepares the packet to be sent and sets
--- a/sx1276/sx1276.cpp	Thu May 25 21:56:39 2017 +0200
+++ b/sx1276/sx1276.cpp	Sat May 27 23:02:56 2017 +0200
@@ -598,7 +598,7 @@
     }
 }
 
-uint32_t SX1276::TimeOnAir( RadioModems_t modem, uint8_t pktLen )
+uint32_t SX1276::TimeOnAir( RadioModems_t modem, int16_t pktLen )
 {
     uint32_t airTime = 0;
 
--- a/sx1276/sx1276.h	Thu May 25 21:56:39 2017 +0200
+++ b/sx1276/sx1276.h	Sat May 27 23:02:56 2017 +0200
@@ -313,7 +313,7 @@
      *
      * @retval airTime        Computed airTime for the given packet payload length
      */
-    virtual uint32_t TimeOnAir ( RadioModems_t modem, uint8_t pktLen );
+    virtual uint32_t TimeOnAir ( RadioModems_t modem, int16_t pktLen );
 
     /*!
      * @brief Sends the buffer of size. Prepares the packet to be sent and sets