mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
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:
parent
6f16e11197
commit
b029d04668
2 changed files with 12 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue