chiark / gitweb /
Fixed #367
authordaid303 <daid303@gmail.com>
Sat, 2 Mar 2013 14:48:13 +0000 (15:48 +0100)
committerdaid303 <daid303@gmail.com>
Sat, 2 Mar 2013 14:48:13 +0000 (15:48 +0100)
Cura/util/machineCom.py

index 949d12e8f7e293be4962f84b028859fd82969785..451d584185ea70d8203f67418330529d2efe8a00 100644 (file)
@@ -464,7 +464,7 @@ class MachineCom(object):
                                pass
                if 'M140' in cmd or 'M190' in cmd:
                        try:
-                               self._bedTargetTemp = float(re.search('S([0-9]+)').group(1))
+                               self._bedTargetTemp = float(re.search('S([0-9]+)', cmd).group(1))
                        except:
                                pass
                self._log('Send: %s' % (cmd))