stepper: Add a get_name() method to PrinterStepper

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-06-21 14:33:55 -04:00
parent d0590ccb0e
commit 544f8c1e85
3 changed files with 16 additions and 12 deletions

View File

@@ -83,7 +83,7 @@ class ZTilt:
positions.append((stepper_offset, s))
# Report on movements
msg = "Making the following Z tilt adjustments:\n%s\nz_offset = %.6f" % (
"\n".join(["%s = %.6f" % (s.name, so) for so, s in positions]),
"\n".join(["%s = %.6f" % (s.get_name(), so) for so, s in positions]),
z_adjust - z_offset)
logging.info(msg)
self.gcode.respond_info(msg)