From 73565728c762af0806398e10e4ab8e6078bf20fe Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Thu, 18 Jan 2018 14:38:18 -0600 Subject: [PATCH] Further clean up for serial over run issue during long operations --- Marlin/G26_Mesh_Validation_Tool.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Marlin/G26_Mesh_Validation_Tool.cpp b/Marlin/G26_Mesh_Validation_Tool.cpp index 8a3bd7bcd..2c43ddca1 100644 --- a/Marlin/G26_Mesh_Validation_Tool.cpp +++ b/Marlin/G26_Mesh_Validation_Tool.cpp @@ -274,6 +274,9 @@ // action to give the user a more responsive 'Stop'. set_destination_from_current(); idle(); + MYSERIAL.flush(); // G26 takes a long time to complete. PronterFace can + // over run the serial character buffer with M105's without + // this fix } wait_for_release(); @@ -822,7 +825,9 @@ //} print_line_from_here_to_there(rx, ry, g26_layer_height, xe, ye, g26_layer_height); - + MYSERIAL.flush(); // G26 takes a long time to complete. PronterFace can + // over run the serial character buffer with M105's without + // this fix } if (look_for_lines_to_connect()) goto LEAVE;