aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-05-20 12:52:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-20 12:52:19 -0400
commit2ab47cd20c87aa6798f13e0f5180cb90c9cba614 (patch)
tree433374572e84ab2e6a0901a22b25f557fefa3cec /klippy/toolhead.py
parent75a1e9ea21c305c50c1ffe6eb93c42106ff16f3e (diff)
downloadkutter-2ab47cd20c87aa6798f13e0f5180cb90c9cba614.tar.gz
kutter-2ab47cd20c87aa6798f13e0f5180cb90c9cba614.tar.xz
kutter-2ab47cd20c87aa6798f13e0f5180cb90c9cba614.zip
extruder: Fix SET_PRESSURE_ADVANCE so that it works with multiple extruders
Use the new gcode.register_mux_command() so that SET_PRESSURE_ADVANCE works correctly with multiple extruders. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index ff51c4c9..f62a86fe 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -372,6 +372,8 @@ class ToolHead:
self.extruder = extruder
self.move_queue.set_extruder(extruder)
self.commanded_pos[3] = extrude_pos
+ def get_extruder(self):
+ return self.extruder
# Misc commands
def stats(self, eventtime):
for m in self.all_mcus: