diff options
author | Arjan Mels <43108771+arjanmels@users.noreply.github.com> | 2021-02-19 02:32:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 20:32:46 -0500 |
commit | b2cbb9aa965fb95357f1a667a17b7b48bf39c0f4 (patch) | |
tree | f0859a2e5b711cf6c8106de61c2bfa72218dd9ee /klippy/extras/idle_timeout.py | |
parent | 83cc6039c5af531d41f4f826cb34ac152c87b2d1 (diff) | |
download | kutter-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/idle_timeout.py')
-rw-r--r-- | klippy/extras/idle_timeout.py | 4 |
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 |