aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorArjan Mels <43108771+arjanmels@users.noreply.github.com>2021-02-19 02:32:46 +0100
committerGitHub <noreply@github.com>2021-02-18 20:32:46 -0500
commitb2cbb9aa965fb95357f1a667a17b7b48bf39c0f4 (patch)
treef0859a2e5b711cf6c8106de61c2bfa72218dd9ee /klippy/extras
parent83cc6039c5af531d41f4f826cb34ac152c87b2d1 (diff)
downloadkutter-b2cbb9aa965fb95357f1a667a17b7b48bf39c0f4.tar.gz
kutter-b2cbb9aa965fb95357f1a667a17b7b48bf39c0f4.tar.xz
kutter-b2cbb9aa965fb95357f1a667a17b7b48bf39c0f4.zip
idle_timeout: Add help to SET_IDLE_TIMEOUT (#3945)
Signed-off-by: Arjan Mels <github@mels.email>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/idle_timeout.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/extras/idle_timeout.py b/klippy/extras/idle_timeout.py
index 17d11338..9a2d02cb 100644
--- a/klippy/extras/idle_timeout.py
+++ b/klippy/extras/idle_timeout.py
@@ -25,7 +25,8 @@ class IdleTimeout:
self.idle_gcode = gcode_macro.load_template(config, 'gcode',
DEFAULT_IDLE_GCODE)
self.gcode.register_command('SET_IDLE_TIMEOUT',
- self.cmd_SET_IDLE_TIMEOUT)
+ self.cmd_SET_IDLE_TIMEOUT,
+ desc=self.cmd_SET_IDLE_TIMEOUT_help)
self.state = "Idle"
self.last_print_start_systime = 0.
def get_status(self, eventtime):
@@ -98,6 +99,7 @@ class IdleTimeout:
self.reactor.update_timer(self.timeout_timer, curtime + check_time)
self.printer.send_event("idle_timeout:printing",
est_print_time + PIN_MIN_TIME)
+ cmd_SET_IDLE_TIMEOUT_help = "Set the idle timeout in seconds"
def cmd_SET_IDLE_TIMEOUT(self, gcmd):
timeout = gcmd.get_float('TIMEOUT', self.idle_timeout, above=0.)
self.idle_timeout = timeout