mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 08:17:52 -06:00
stepper_enable: report status
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
This commit is contained in:
parent
72b6bd7efa
commit
4b5d056421
2 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,10 @@ class PrinterStepperEnable:
|
|||
el.motor_disable(print_time)
|
||||
logging.info("%s has been manually disabled", stepper)
|
||||
toolhead.dwell(DISABLE_STALL_TIME)
|
||||
def get_status(self, eventtime):
|
||||
steppers = { name: et.is_motor_enabled()
|
||||
for (name, et) in self.enable_lines.items() }
|
||||
return {'steppers': steppers}
|
||||
def _handle_request_restart(self, print_time):
|
||||
self.motor_off()
|
||||
def cmd_M18(self, gcmd):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue