Also call clear_command_queue for lcd_sdcard_stop

This commit is contained in:
Scott Lahteine committed 2016-06-02 17:16:19 -07:00
1 parent 6277395e1e
commit 064efb20e0
3 files changed
+7

No files matched your search

+5
View File
@@ -613,6 +613,11 @@ void enqueue_and_echo_commands_P(const char* pgcode) {
drain_queued_commands_P(); // first command executed asap (when possible)
}
void clear_command_queue() {
cmd_queue_index_r = cmd_queue_index_w;
commands_in_queue = 0;
}
/**
* Once a new command is in the ring buffer, call this to commit it
*/