Fix changing flow rate in dual extrusion

This potentially set the flow rate to -1, since it was changing the flow rate to the old['flowrateTwo'] which was left at -1 since initialisation because it didn't update here.
This commit is contained in:
Ghostkeeper 2018-10-19 09:55:23 +02:00
parent 9aa7b76dbe
commit 2eb9b111fc
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -413,7 +413,7 @@ class ChangeAtZ(Script):
elif tmp_extruder == 0: #first extruder
old["flowrateOne"] = self.getValue(line, "S", old["flowrateOne"])
elif tmp_extruder == 1: #second extruder
old["flowrateOne"] = self.getValue(line, "S", old["flowrateOne"])
old["flowrateTwo"] = self.getValue(line, "S", old["flowrateTwo"])
if ("M84" in line or "M25" in line):
if state>0 and ChangeProp["speed"]: #"finish" commands for UM Original and UM2
modified_gcode += "M220 S100 ; speed reset to 100% at the end of print\n"