Basic MAC data interface for LoRa transceiver

Dependencies:   L2Frame crc

Dependents:   LoRaBaseStation LoRaTerminal

Revision:
20:bd26d3cbc0bd
Parent:
19:6cd5024b6ae4
Child:
21:3b86a44b98c8
--- a/AlohaTransceiver.cpp	Wed Aug 24 10:36:14 2016 +0000
+++ b/AlohaTransceiver.cpp	Wed Aug 24 10:46:33 2016 +0000
@@ -45,11 +45,11 @@
 void OnCadDone();
 
 // radio driver
-#ifdef BUILD_FOR_BS
+#ifdef DRIVER_SX1276
 SX1276MB1xAS Radio( NULL );
 #endif
 
-#ifdef BUILD_FOR_TERMINAL
+#ifdef DRIVER_INAIR
 SX1276inAir Radio( NULL );
 #endif
 
@@ -262,7 +262,10 @@
     Radio.Send(buffer, frame_length);
     
     // workaround: set radio to rx state after transmitting
+    // i noticed different hehavior on different driver
+#ifdef DRIVER_INAIR
     Radio.Rx(0);
+#endif
     
     State = LOWPOWER;