manual_stepper: Add basic status. (#6527)
Adding position and enabled in manual_stepper status. Enabled is already available through stepper_enable object. But this makes it more straightforward to access it. Signed-off-by: Viesturs Zarins <viesturz@gmail.com>
This commit is contained in:
@@ -104,6 +104,11 @@ class ManualStepper:
|
||||
self.do_move(movepos, speed, accel, sync)
|
||||
elif gcmd.get_int('SYNC', 0):
|
||||
self.sync_print_time()
|
||||
|
||||
def get_status(self, eventtime):
|
||||
return {'position': self.rail.get_commanded_position(),
|
||||
'enabled': self.steppers[0].is_motor_enabled()}
|
||||
|
||||
# Toolhead wrappers to support homing
|
||||
def flush_step_generation(self):
|
||||
self.sync_print_time()
|
||||
|
||||
Reference in New Issue
Block a user