chiark / gitweb /
Only cooldown the number of configured extruders. Avoid an 'invalid extruder' error
[cura.git] / 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)