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 58:113d2ef978d2, committed 2017-05-25
- Comitter:
- Helmut Tschemernjak
- Date:
- Thu May 25 21:56:39 2017 +0200
- Parent:
- 57:d9aba0f40823
- Child:
- 59:38e56c85fa44
- Commit message:
- Removed duplicate timer definitions (left over from previous cleanup)
zapping the receive buffer makes no sense, keeping the content is better
and allows coping the data while we are receiving the next packet.
The State = RF_IDLE is already done in the sx1276 constructor,
no need to do it in the HAL layer.
Changed in this revision
--- a/sx1276/sx1276-arduino-hal.cpp Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276-arduino-hal.cpp Thu May 25 21:56:39 2017 +0200
@@ -93,8 +93,6 @@
RadioRegistersInit( );
SetModem( MODEM_FSK );
-
- this->settings.State = RF_IDLE ;
}
SX1276Generic::~SX1276Generic()
--- a/sx1276/sx1276-mbed-hal.cpp Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.cpp Thu May 25 21:56:39 2017 +0200
@@ -92,8 +92,6 @@
RadioRegistersInit( );
SetModem( MODEM_FSK );
-
- this->settings.State = RF_IDLE ;
}
SX1276Generic::~SX1276Generic()
--- a/sx1276/sx1276.cpp Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276.cpp Thu May 25 21:56:39 2017 +0200
@@ -911,9 +911,7 @@
}
break;
}
-
- memset( rxtxBuffer, 0, ( size_t )RX_BUFFER_SIZE );
-
+
this->settings.State = RF_RX_RUNNING;
if( timeout != 0 )
{
--- a/sx1276/sx1276.h Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276.h Thu May 25 21:56:39 2017 +0200
@@ -128,12 +128,6 @@
DioIrqHandler *dioIrq;
- /*!
- * Tx and Rx timers
- */
- Timeout txTimeoutTimer;
- Timeout rxTimeoutTimer;
- Timeout rxTimeoutSyncWord;
RadioSettings_t settings;
