From 306f44198ed1a59ad9ac2df4d1eaebe5b4c7b53d Mon Sep 17 00:00:00 2001
From: Roxy-3D <Roxy-3D@users.noreply.github.com>
Date: Sun, 25 Feb 2018 21:59:19 -0600
Subject: [PATCH] Prevent serial buffer overrun in Pronterface

75ms might  be excessive...    But I know people are seeing problems with PronterFace as the client...
---
 Marlin/src/feature/bedlevel/ubl/ubl.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Marlin/src/feature/bedlevel/ubl/ubl.cpp b/Marlin/src/feature/bedlevel/ubl/ubl.cpp
index 7d44bb3e70..44a88fc47f 100644
--- a/Marlin/src/feature/bedlevel/ubl/ubl.cpp
+++ b/Marlin/src/feature/bedlevel/ubl/ubl.cpp
@@ -63,6 +63,7 @@
           SERIAL_ECHOPAIR_P(port, " ; X", LOGICAL_X_POSITION(mesh_index_to_xpos(x)));
           SERIAL_ECHOPAIR_P(port, ", Y", LOGICAL_Y_POSITION(mesh_index_to_ypos(y)));
           SERIAL_EOL_P(port);
+          safe_delay(75); // Prevent Printrun from exploding
         }
   }
 
-- 
GitLab