Send M83 and M82 in extrusion commands to support firmware that decoupled XYZ from E relatives

This commit is contained in:
Khoi committed 2020-05-29 16:34:44 -04:00
1 parent 65a66b11eb
commit 2e5d97e99c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -396,7 +396,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
# Make sure that specified value is not greater than maximum as defined in printer profile
extrusion_speed = min([speed, max_e_speed])
self.commands(["G91", "G1 E%s F%d" % (amount, extrusion_speed), "G90"],
self.commands(["G91", "M83", "G1 E%s F%d" % (amount, extrusion_speed), "M82", "G90"],
tags=kwargs.get("tags", set()) | {"trigger:printer.extrude"})
def change_tool(self, tool, *args, **kwargs):