Prosper Van / xbeeCom

Fork of com by Prosper Van

Files at this revision

API Documentation at this revision

Comitter:
oprospero
Date:
Wed Apr 23 06:21:01 2014 +0000
Parent:
7:662171c0e984
Child:
9:1190db2717a8
Commit message:
overflowing queue will force a pop instead of clear

Changed in this revision

queue/queue.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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.