Conveyor: use get_tail_ref
authorMichael Moon <triffid.hunter@gmail.com>
Tue, 26 Feb 2013 01:11:25 +0000 (12:11 +1100)
committerMichael Moon <triffid.hunter@gmail.com>
Tue, 26 Feb 2013 01:11:46 +0000 (12:11 +1100)
src/modules/robot/Conveyor.cpp

index 3a699e1..88b2ccb 100644 (file)
@@ -33,7 +33,7 @@ void Conveyor::on_idle(void* argument)
 {
     if (flush_blocks)
     {
-        Block* block = queue.get_ref(0);
+        Block* block = queue.get_tail_ref();
 //         printf("Block: clean %p\n", block);
         while (block->gcodes.size())
         {