1

Revision:
17:5f34cbe2ac53
Parent:
6:b7bbf31e06e4
--- a/radio_ff_arduino_sx127x.cpp	Wed Oct 30 12:50:54 2019 -0700
+++ b/radio_ff_arduino_sx127x.cpp	Mon Jun 01 15:59:56 2020 -0700
@@ -1,5 +1,5 @@
 /* Only for NUCLEO boards: prevent compiling for MOTE_L152RC and typeABZ discovery */
-#if defined(TARGET_FF_ARDUINO) && defined(TARGET_FF_MORPHO) && !defined(TARGET_DISCO_L072CZ_LRWAN1)
+#if defined(TARGET_FF_ARDUINO) && !defined(TARGET_DISCO_L072CZ_LRWAN1) && !defined(TARGET_MOTE_L152RC)
 #include "radio.h"
 #ifdef SX127x_H 
 #include "SPIu.h"
@@ -31,10 +31,12 @@
     else
         rfsw = 0;
 
+#ifdef TARGET_FF_MORPHO
     if (radio.RegOpMode.bits.Mode == RF_OPMODE_RECEIVER || radio.RegOpMode.bits.Mode == RF_OPMODE_RECEIVER_SINGLE)
         pc3 = 1;
     else
         pc3 = 0;
+#endif /* TARGET_FF_MORPHO */
 }
 
 void