chiark / gitweb /
Only cooldown the number of configured extruders. Avoid an 'invalid extruder' error
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 8 Dec 2015 18:29:19 +0000 (13:29 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 8 Dec 2015 18:36:20 +0000 (13:36 -0500)
Cura/util/printerConnection/serialConnection.py

index d70d00701fa626f6d922f60923d13d30135ce4bc..c038cc360a9e632dbd3c7284be30eec0594ec5fd 100644 (file)
@@ -103,7 +103,7 @@ class serialConnection(printerConnectionBase.printerConnectionBase):
 
        def coolDown(self):
                cooldown_toolhead = "M104 S0"
-               for i in range(0,3):
+               for i in range(0, int(profile.getMachineSetting('extruder_amount'))):
                        change_toolhead = "T{}".format(i)
                        self.sendCommand(change_toolhead)
                        self.sendCommand(cooldown_toolhead)