Browse Source

Allow the queue to be cleared from within commands

pull/1/head
Scott Lahteine 8 years ago
parent
commit
0d4ff0c48b
  1. 5
      Marlin/Marlin_main.cpp

5
Marlin/Marlin_main.cpp

@ -990,9 +990,12 @@ void loop() {
#endif // SDSUPPORT
commands_in_queue--;
// The queue may be reset by a command handler or by code invoked by idle() within a handler
if (commands_in_queue) {
--commands_in_queue;
cmd_queue_index_r = (cmd_queue_index_r + 1) % BUFSIZE;
}
}
endstops.report_state();
idle();
}

Loading…
Cancel
Save