Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO-L072CZ-LRWAN1_LoRa_PingPong
Fork of SX1276GenericLib by
Revision 59:38e56c85fa44, committed 2017-05-27
- 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
--- 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
