stepper_enable: report status
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
This commit is contained in:
parent
72b6bd7efa
commit
4b5d056421
|
@ -398,6 +398,12 @@ The following information is available in
|
||||||
- `printer["servo <config_name>"].value`: The last setting of the PWM
|
- `printer["servo <config_name>"].value`: The last setting of the PWM
|
||||||
pin (a value between 0.0 and 1.0) associated with the servo.
|
pin (a value between 0.0 and 1.0) associated with the servo.
|
||||||
|
|
||||||
|
## stepper_enable
|
||||||
|
|
||||||
|
The following information is available in the `stepper_enable` object (this
|
||||||
|
object is available if any stepper is defined):
|
||||||
|
- `steppers["<stepper>"]`: Returns True if the given stepper is enabled.
|
||||||
|
|
||||||
## system_stats
|
## system_stats
|
||||||
|
|
||||||
The following information is available in the `system_stats` object
|
The following information is available in the `system_stats` object
|
||||||
|
|
|
@ -108,6 +108,10 @@ class PrinterStepperEnable:
|
||||||
el.motor_disable(print_time)
|
el.motor_disable(print_time)
|
||||||
logging.info("%s has been manually disabled", stepper)
|
logging.info("%s has been manually disabled", stepper)
|
||||||
toolhead.dwell(DISABLE_STALL_TIME)
|
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):
|
def _handle_request_restart(self, print_time):
|
||||||
self.motor_off()
|
self.motor_off()
|
||||||
def cmd_M18(self, gcmd):
|
def cmd_M18(self, gcmd):
|
||||||
|
|
Loading…
Reference in New Issue