Driver for SX1272 connected to Pulga devices using only DIO0 pins and polling (error states and timeout).

Dependents:   pulga-mbed-lorawan-gps mbed-lorawan-pulga mbed-lorawan-pulga-testing-channel mbed-lorawan-pulga-serial_rx ... more

Files at this revision

API Documentation at this revision

Comitter:
brunnobbco
Date:
Tue Mar 30 20:08:17 2021 +0000
Parent:
4:2235ad0a46be
Commit message:
Forget to change another gpio occurrence.

Changed in this revision

SX1272/SX1272_LoRaRadio.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SX1272/SX1272_LoRaRadio.cpp	Tue Mar 30 19:44:59 2021 +0000
+++ b/SX1272/SX1272_LoRaRadio.cpp	Tue Mar 30 20:08:17 2021 +0000
@@ -1343,8 +1343,11 @@
         _pwr_amp_ctl = 0;
     }
 
-    if (_rf_ctrls.rf_switch_ctl1 != NC && _rf_ctrls.rf_switch_ctl2 != NC) {
+    if (_rf_ctrls.rf_switch_ctl1 != NC) {
         _rf_switch_ctl1 = 0;
+    }
+    
+    if (_rf_ctrls.rf_switch_ctl2 != NC) {
         _rf_switch_ctl2 = 0;
     }