From 597d94bd3ac79c55092ce5bd531c3001e94bced3 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Thu, 18 Jan 2018 16:48:12 -0600 Subject: [PATCH] Better handle serial buffer over run --- Marlin/Marlin_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index cd8ad8c019..e9fe98d513 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -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; } /**