Better handle serial buffer over run

This commit is contained in:
Roxy-3D 2018-01-18 16:48:12 -06:00 committed by GitHub
parent 73565728c7
commit 597d94bd3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
/**