Also call clear_command_queue for lcd_sdcard_stop

This commit is contained in:
Scott Lahteine
2016-05-31 17:41:32 -07:00
parent 6277395e1e
commit 064efb20e0
3 changed files with 7 additions and 0 deletions

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
*/