From 50935fdedadf0ed3832b61644ac3f0ef383ac3ed Mon Sep 17 00:00:00 2001 From: Lasse Reinhold Date: Thu, 12 Nov 2020 08:41:19 +0100 Subject: [PATCH] Update plugins/USBPrinting/AutoDetectBaudJob.py Co-authored-by: StefanBruens --- plugins/USBPrinting/AutoDetectBaudJob.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/USBPrinting/AutoDetectBaudJob.py b/plugins/USBPrinting/AutoDetectBaudJob.py index 52666427bc..b5a294dcda 100644 --- a/plugins/USBPrinting/AutoDetectBaudJob.py +++ b/plugins/USBPrinting/AutoDetectBaudJob.py @@ -71,7 +71,9 @@ class AutoDetectBaudJob(Job): timeout_time = time() + wait_response_timeout while timeout_time > time(): - # If baudrate is wrong, then readline() might never return, even with timeouts set. Using read_until with size limit seems to fix this. + # If baudrate is wrong, then readline() might never + # return, even with timeouts set. Using read_until + # with size limit seems to fix this. line = serial.read_until(size = 100) if b"ok" in line and b"T:" in line: successful_responses += 1