From 38c0f64a2a55b023b50198530bae51d67d21d522 Mon Sep 17 00:00:00 2001 From: make-ing Date: Tue, 27 Oct 2015 14:28:16 +0100 Subject: [PATCH] changed from sleep() to wait() --- src/octoprint/util/comm_acc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm_acc.py b/src/octoprint/util/comm_acc.py index 8dacbdd5..82d65070 100644 --- a/src/octoprint/util/comm_acc.py +++ b/src/octoprint/util/comm_acc.py @@ -1757,7 +1757,8 @@ class MachineCom(object): p_command, p_linenbr, p_cmd_type = peeked_entry if(self.RX_BUFFER_SIZE - sum(self.acc_line_lengths) - len(p_command) < 5): - time.sleep(0.001) + #time.sleep(0.001) + self._clear_to_send.wait() continue # wait until we have something in the queue