xbee communication for UWB quadcopter project
Diff: queue/queue.cpp
- Revision:
- 7:951c71c71b2d
- Parent:
- 0:26a151d2c6db
diff -r 662171c0e984 -r 951c71c71b2d queue/queue.cpp --- 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.