chiark / gitweb /
Skip displaying the 'No line number with checksum' error to the print window
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 2 Jan 2015 08:13:58 +0000 (03:13 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 2 Jan 2015 08:21:23 +0000 (03:21 -0500)
This commit partially fixes issue #66

Cura/util/machineCom.py

index c09adb36984a7e4e056ac37fde4b884f9b1d5c03..fbe609c2fa7f08e9af7226ce10c68a008b38284c 100644 (file)
@@ -395,7 +395,10 @@ class MachineCom(object):
                                        t = time.time()
                                        self._heatupWaitTimeLost = t - self._heatupWaitStartTime
                                        self._heatupWaitStartTime = t
-                       elif line.strip() != '' and line.strip() != 'ok' and not line.startswith('Resend:') and not line.startswith('Error:checksum mismatch') and not line.startswith('Error:Line Number is not Last Line Number+1') and line != 'echo:Unknown command:""\n' and self.isOperational():
+                       elif line.strip() != '' and line.strip() != 'ok' and not line.startswith('Resend:') and \
+                                not line.startswith('Error:checksum mismatch') and not line.startswith('Error:Line Number is not Last Line Number+1') and \
+                                not line.startswith('Error:No Checksum with line number') and not line.startswith('Error:No Line Number with checksum') and \
+                                line != 'echo:Unknown command:""\n' and self.isOperational():
                                self._callback.mcMessage(line)
 
                        if self._state == self.STATE_DETECT_BAUDRATE or self._state == self.STATE_DETECT_SERIAL: