diff options
author | Viesturs Zariņš <viesturz@gmail.com> | 2024-04-04 22:46:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 16:46:30 -0400 |
commit | b029d0466841b90b54279500f70a92deacfd6c5a (patch) | |
tree | c189dad07adb69f999314b45b6577c0fc10f904f /klippy/extras/manual_stepper.py | |
parent | 6f16e111977d0aa68fb4c6362509cec07a94115c (diff) | |
download | kutter-b029d0466841b90b54279500f70a92deacfd6c5a.tar.gz kutter-b029d0466841b90b54279500f70a92deacfd6c5a.tar.xz kutter-b029d0466841b90b54279500f70a92deacfd6c5a.zip |
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>
Diffstat (limited to 'klippy/extras/manual_stepper.py')
-rw-r--r-- | klippy/extras/manual_stepper.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/klippy/extras/manual_stepper.py b/klippy/extras/manual_stepper.py index 40db4a50..e18989d3 100644 --- a/klippy/extras/manual_stepper.py +++ b/klippy/extras/manual_stepper.py @@ -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() |