Basic MAC data interface for LoRa transceiver

Dependencies:   L2Frame crc

Dependents:   LoRaBaseStation LoRaTerminal

Files at this revision

API Documentation at this revision

Comitter:
rba90
Date:
Wed Sep 14 08:50:37 2016 +0000
Parent:
40:271fa9e98589
Commit message:
transmit one packet at a time

Changed in this revision

AlohaTransceiver.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 271fa9e98589 -r 37c1d616a848 AlohaTransceiver.cpp
--- a/AlohaTransceiver.cpp	Wed Sep 14 08:12:26 2016 +0000
+++ b/AlohaTransceiver.cpp	Wed Sep 14 08:50:37 2016 +0000
@@ -285,7 +285,7 @@
             if (getTxDoneFlag())
             {
                 // find next available packet to transmit
-                while( AlohaTxQueue.getCounter() > 0)
+                if ( AlohaTxQueue.getCounter() > 0)
                 {
                     // perform CSMA backoff routine
                     if (isBackoff == true) // if the transceiver is already in the backoff state, then wait until timer expires