chiark / gitweb /
Small fix for #277 Most likely RepetierFW will cause more issues then just this.
authordaid <daid303@gmail.com>
Thu, 11 Jul 2013 09:42:41 +0000 (11:42 +0200)
committerdaid <daid303@gmail.com>
Thu, 11 Jul 2013 09:42:41 +0000 (11:42 +0200)
Cura/util/machineCom.py

index bc19cf499f2b005ec0f6a9de33b9c29e054e8087..4bae4dc0c5464b1e92c89add93f4e1d20e2080f5 100644 (file)
@@ -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))