wayne roberts / Mbed OS LoRaWAN_singlechannel_endnode

Dependencies:   SX127x sx12xx_hal TSL2561

Revision:
18:9ac71c0eb70d
Parent:
10:00997daeb0c0
Child:
20:42839629a5dc
--- a/radio/sx1276/sx1276.cpp	Fri Jul 28 22:18:46 2017 +0000
+++ b/radio/sx1276/sx1276.cpp	Wed Aug 02 11:42:33 2017 -0700
@@ -998,7 +998,7 @@
 
 void SX1276::SetOpMode( uint8_t opMode )
 {
-    if (opMode == RF_OPMODE_RECEIVER || opMode == RFLR_OPMODE_RECEIVER_SINGLE && expecting_beacon)
+    if ((opMode == RF_OPMODE_RECEIVER || opMode == RFLR_OPMODE_RECEIVER_SINGLE) && expecting_beacon)
         rx_debug_pin = 1;
     else
         rx_debug_pin = 0;