chiark / gitweb /
Send an M92 Exxx when doing test extrusion
authordaid <daid303@gmail.com>
Wed, 14 Mar 2012 11:28:42 +0000 (12:28 +0100)
committerdaid <daid303@gmail.com>
Wed, 14 Mar 2012 11:28:42 +0000 (12:28 +0100)
SkeinPyPy_NewUI/newui/configWizard.py

index 78b51a9d8e130fe9e7b452fc2752529e2f1c05bc..f8a29ce57e5404386426e6f4de21949f50e29152 100644 (file)
@@ -343,6 +343,7 @@ class UltimakerCalibrateStepsPerEPage(InfoPage):
                threading.Thread(target=self.OnRun).start()\r
 \r
        def OnRun(self):\r
+               currentEValue = float(self.stepsPerEInput.GetValue())\r
                self.comm = machineCom.MachineCom()\r
                while True:\r
                        line = self.comm.readline()\r
@@ -351,6 +352,7 @@ class UltimakerCalibrateStepsPerEPage(InfoPage):
                        if line.startswith('start'):\r
                                break\r
                self.sendGCommand('M302') #Disable cold extrusion protection\r
+               self.sendGCommand("M92 E%f" % (currentEValue));\r
                self.sendGCommand("G92 E0");\r
                self.sendGCommand("G1 E100 F300");\r
                time.sleep(5)\r