Better handle serial buffer over run
This commit is contained in:
parent
73565728c7
commit
597d94bd3a
@ -840,8 +840,7 @@ void enqueue_and_echo_commands_P(const char * const pgcode) {
|
||||
* Clear the Marlin command queue
|
||||
*/
|
||||
void clear_command_queue() {
|
||||
cmd_queue_index_r = cmd_queue_index_w;
|
||||
commands_in_queue = 0;
|
||||
cmd_queue_index_r = cmd_queue_index_w = commands_in_queue = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user