From 2fe62c4e30203642fba0b227ec61c7ce9bc8963b Mon Sep 17 00:00:00 2001 From: daid Date: Thu, 11 Jul 2013 11:42:41 +0200 Subject: [PATCH] Small fix for #277 Most likely RepetierFW will cause more issues then just this. --- Cura/util/machineCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/util/machineCom.py b/Cura/util/machineCom.py index bc19cf49..4bae4dc0 100644 --- a/Cura/util/machineCom.py +++ b/Cura/util/machineCom.py @@ -328,7 +328,7 @@ class MachineCom(object): tempRequestTimeout = timeout while True: line = self._readline() - if line == None: + if line is None: break #No matter the state, if we see an error, goto the error state and store the error for reference. @@ -384,7 +384,7 @@ class MachineCom(object): self._testingBaudrate = True except: self._log("Unexpected error while setting baudrate: %d %s" % (baudrate, getExceptionString())) - elif 'ok' in line and 'T:' in line: + elif 'T:' in line: self._baudrateDetectTestOk += 1 if self._baudrateDetectTestOk < 10: self._log("Baudrate test ok: %d" % (self._baudrateDetectTestOk)) -- 2.30.2