mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 07:27:43 -06:00
stepper: Add STEPPER_BUZZ command
Add a new command that can help diagnose stepper motor connectivity. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e50c2aa38d
commit
ee4f37fe0c
3 changed files with 36 additions and 0 deletions
|
@ -78,12 +78,15 @@ class MCU_stepper:
|
|||
return int(mcu_pos + 0.5)
|
||||
return int(mcu_pos - 0.5)
|
||||
def set_ignore_move(self, ignore_move):
|
||||
was_ignore = (self._stepcompress_push_const
|
||||
is not self._ffi_lib.stepcompress_push_const)
|
||||
if ignore_move:
|
||||
self._stepcompress_push_const = (lambda *args: 0)
|
||||
self._stepcompress_push_delta = (lambda *args: 0)
|
||||
else:
|
||||
self._stepcompress_push_const = self._ffi_lib.stepcompress_push_const
|
||||
self._stepcompress_push_delta = self._ffi_lib.stepcompress_push_delta
|
||||
return was_ignore
|
||||
def note_homing_start(self, homing_clock):
|
||||
ret = self._ffi_lib.stepcompress_set_homing(
|
||||
self._stepqueue, homing_clock)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue