chiark / gitweb /
Add 3 seconds delay in config wizard for the SD card init to timeout.
authordaid <daid303@gmail.com>
Mon, 7 May 2012 14:42:15 +0000 (16:42 +0200)
committerdaid <daid303@gmail.com>
Mon, 7 May 2012 14:42:15 +0000 (16:42 +0200)
Cura/gui/configWizard.py

index 8edaf410fa4b2ed12c2958a06aa5b7c267398e59..812b073f0f9c89b7d513d6f32a8c68d745ce731d 100644 (file)
@@ -180,11 +180,13 @@ class UltimakerCheckupPage(InfoPage):
                        wx.CallAfter(self.AddProgressText, "Error: Missing start message.")\r
                        self.comm.close()\r
                        return\r
-                       \r
+               \r
+               #Wait 3 seconds for the SD card init to timeout if we have SD in our firmware but there is no SD card found.\r
+               time.sleep(3)\r
+               \r
                wx.CallAfter(self.AddProgressText, "Disabling step motors...")\r
                if self.DoCommCommandWithTimeout('M84') == False:\r
                        wx.CallAfter(self.AddProgressText, "Error: Missing reply to Deactivate steppers (M84).")\r
-                       wx.CallAfter(self.AddProgressText, "Possible cause: Temperature MIN/MAX.\nCheck temperature sensor connections.")\r
                        self.comm.close()\r
                        return\r
 \r
@@ -289,6 +291,7 @@ class UltimakerCheckupPage(InfoPage):
                        if line == '':\r
                                self.comm.close()\r
                                return False\r
+                       print line\r
                        if line.startswith(replyStart):\r
                                break\r
                t.cancel()\r
@@ -372,6 +375,9 @@ class UltimakerCalibrateStepsPerEPage(InfoPage):
                                return\r
                        if line.startswith('start'):\r
                                break\r
+               #Wait 3 seconds for the SD card init to timeout if we have SD in our firmware but there is no SD card found.\r
+               time.sleep(3)\r
+               \r
                self.sendGCommand('M302') #Disable cold extrusion protection\r
                self.sendGCommand("M92 E%f" % (currentEValue));\r
                self.sendGCommand("G92 E0");\r
@@ -392,6 +398,9 @@ class UltimakerCalibrateStepsPerEPage(InfoPage):
                                return\r
                        if line.startswith('start'):\r
                                break\r
+               #Wait 3 seconds for the SD card init to timeout if we have SD in our firmware but there is no SD card found.\r
+               time.sleep(3)\r
+               \r
                self.sendGCommand('M104 S200') #Set the temperature to 200C, should be enough to get PLA and ABS out.\r
                wx.MessageBox('Wait till you can remove the filament from the machine, and press OK.\n(Temperature is set to 200C)', 'Machine heatup', wx.OK | wx.ICON_INFORMATION)\r
                self.sendGCommand('M104 S0')\r