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>
This commit is contained in:
Kevin O'Connor 2018-05-20 12:52:19 -04:00
parent 75a1e9ea21
commit 2ab47cd20c
3 changed files with 16 additions and 5 deletions

View file

@ -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: