chiark / gitweb /
Slow extrusion speed for flexy toolheads
authornickthetait <tait@alephobjects.com>
Thu, 15 Oct 2015 16:40:46 +0000 (10:40 -0600)
committernickthetait <tait@alephobjects.com>
Thu, 15 Oct 2015 16:40:46 +0000 (10:40 -0600)
Fixes T292
Auditors: kakaroto

Cura/gui/printWindow.py

index 7911b38b239ed18127eed0128e9ce3870b3f2c0d..db06542721ab34fc561db9e2b7f29098a88103ca 100644 (file)
@@ -801,7 +801,13 @@ class printWindowAdvanced(wx.Frame):
                self._moveXYZE("Z", step, 200)
 
        def _moveE(self, step):
-               self._moveXYZE("E", step, 120)
+               feedrate = 120
+               from Cura.util import profile
+               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):
                if not self._printerConnection.isPaused() and not self._printerConnection.isPrinting():