extruder: Add extruder name to extruder_stepper respond message (#6020)

Signed-off-by: Andrei Kozhevnikov <coderusinbox@gmail.com>
This commit is contained in:
CODeRUS 2023-02-04 00:50:56 +01:00 committed by GitHub
parent fa78e6b8fb
commit 791ad6162a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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