From 791ad6162ac8f0a2a6736322a2d62a9d11e6c1c6 Mon Sep 17 00:00:00 2001 From: CODeRUS Date: Sat, 4 Feb 2023 00:50:56 +0100 Subject: [PATCH] extruder: Add extruder name to extruder_stepper respond message (#6020) Signed-off-by: Andrei Kozhevnikov --- klippy/kinematics/extruder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/klippy/kinematics/extruder.py b/klippy/kinematics/extruder.py index 62ba0c55..0af14a65 100644 --- a/klippy/kinematics/extruder.py +++ b/klippy/kinematics/extruder.py @@ -127,7 +127,8 @@ class ExtruderStepper: def cmd_SYNC_EXTRUDER_MOTION(self, gcmd): ename = gcmd.get('MOTION_QUEUE') self.sync_to_extruder(ename) - gcmd.respond_info("Extruder stepper now syncing with '%s'" % (ename,)) + gcmd.respond_info("Extruder '%s' now syncing with '%s'" + % (self.name, ename)) cmd_SET_E_STEP_DISTANCE_help = "Set extruder step distance" def cmd_SET_E_STEP_DISTANCE(self, gcmd): step_dist = gcmd.get_float('DISTANCE', None, above=0.) @@ -144,7 +145,8 @@ class ExtruderStepper: def cmd_SYNC_STEPPER_TO_EXTRUDER(self, gcmd): ename = gcmd.get('EXTRUDER') self.sync_to_extruder(ename) - gcmd.respond_info("Extruder stepper now syncing with '%s'" % (ename,)) + gcmd.respond_info("Extruder '%s' now syncing with '%s'" + % (self.name, ename)) # Tracking for hotend heater, extrusion motion queue, and extruder stepper class PrinterExtruder: