Driver for the SX1276 RF Transceiver

Dependents:   LoRa_PIR LoRaWAN-lmic-app SX1276PingPong LoRaWAN-lmic-app ... more

Files at this revision

API Documentation at this revision

Comitter:
mluis
Date:
Tue Mar 15 13:12:44 2016 +0000
Parent:
23:1e143575df0f
Child:
25:3778e6204cc1
Commit message:
Corrected the frequency check condition for // ERRATA 2.1 - Sensitivity Optimization with a 500 kHz Bandwidth

Changed in this revision

sx1276/sx1276.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/sx1276/sx1276.cpp	Thu Mar 10 10:00:54 2016 +0000
+++ b/sx1276/sx1276.cpp	Tue Mar 15 13:12:44 2016 +0000
@@ -341,7 +341,7 @@
                 Write( REG_LR_HOPPERIOD, this->settings.LoRa.HopPeriod );
             }
 
-            if( ( bandwidth == 9 ) && ( RF_MID_BAND_THRESH ) )
+            if( ( bandwidth == 9 ) && ( this->settings.Channel > RF_MID_BAND_THRESH ) )
             {
                 // ERRATA 2.1 - Sensitivity Optimization with a 500 kHz Bandwidth 
                 Write( REG_LR_TEST36, 0x02 );