Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LoRaBaseStation LoRaTerminal
Revision 41:37c1d616a848, committed 2016-09-14
- 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 |
--- 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