xbee communication for UWB quadcopter project Originally by Greg Abdo Forking to reduce impact of interrupt by moving packetbuilder out of the interrupt and letting be handled in the main loop
Fork of com by
Diff: queue/queue.cpp
- Revision:
- 8:951c71c71b2d
- Parent:
- 0:26a151d2c6db
- Child:
- 16:89695823d407
--- a/queue/queue.cpp Tue Apr 22 07:09:06 2014 +0000 +++ b/queue/queue.cpp Wed Apr 23 06:21:01 2014 +0000 @@ -83,7 +83,7 @@ return; // If so, return. if( queueLength() > MAXQUEUELENGTH ) - clear(); + delete pop(); queueNode * newNode = new queueNode( item ); // Create the new node.