move back to get_ref in conveyors flush
authorArthur Wolf <wolf.arthur@gmail.com>
Sat, 2 Mar 2013 21:12:51 +0000 (22:12 +0100)
committerArthur Wolf <wolf.arthur@gmail.com>
Sat, 2 Mar 2013 21:12:51 +0000 (22:12 +0100)
src/modules/robot/Conveyor.cpp

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