mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 14:12:52 +00:00
Better handle serial buffer over run
This commit is contained in:
parent
73565728c7
commit
597d94bd3a
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue