From 2e5d97e99ca764d05c2eec2108e1b8349b3ddd9f Mon Sep 17 00:00:00 2001 From: Khoi Date: Fri, 29 May 2020 16:20:50 -0400 Subject: [PATCH] Send M83 and M82 in extrusion commands to support firmware that decoupled XYZ from E relatives --- AUTHORS.md | 1 + src/octoprint/printer/standard.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index 9019c524f..32763a221 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -120,6 +120,7 @@ date of first contribution): * [Tobias Schürg](https://github.com/tobiasschuerg) * [Josh Friend](https://github.com/joshfriend) * [Lachlan Cresswell](https://github.com/lachyc) + * [Khoi Pham](https://github.com/osubuu) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 35910282e..ea727c9b9 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -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):