chiark / gitweb /
Cleanup for T292
authornickthetait <tait@alephobjects.com>
Thu, 15 Oct 2015 17:08:06 +0000 (11:08 -0600)
committernickthetait <tait@alephobjects.com>
Thu, 15 Oct 2015 17:08:06 +0000 (11:08 -0600)
Cura/gui/printWindow.py

index db06542721ab34fc561db9e2b7f29098a88103ca..fe5f48930e02b43daf268dab8fe14f02e9a693e5 100644 (file)
@@ -9,6 +9,7 @@ import os
 import ctypes
 import subprocess
 from Cura.util import resources
+from Cura.util import profile
 
 #TODO: This does not belong here!
 if sys.platform.startswith('win'):
@@ -802,11 +803,11 @@ class printWindowAdvanced(wx.Frame):
 
        def _moveE(self, step):
                feedrate = 120
-               from Cura.util import profile
-               toolhead_name = profile.getMachineSetting("toolhead")
-               toolhead_name = toolhead_name.lower()
-               if "flexy" in toolhead_name:
-                       feedrate=30
+               if "lulzbot_" in profile.getMachineSetting("machine_type"):
+                       toolhead_name = profile.getMachineSetting("toolhead")
+                       toolhead_name = toolhead_name.lower()
+                       if "flexy" in toolhead_name:
+                               feedrate = 30
                self._moveXYZE("E", step, feedrate)
 
        def _homeXYZ(self, direction):