diff options
author | Arksine <arksine.code@gmail.com> | 2019-06-02 07:44:24 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-06-02 19:19:32 -0400 |
commit | 05a04d5d3d11ad817f35d02f4574f59a0ed961ac (patch) | |
tree | 43a97b75f8097376f2455dca63adc0a3d379a3a7 /klippy/extras | |
parent | ca8233e6d5dfe8544396c0bb672ed4366810b795 (diff) | |
download | kutter-05a04d5d3d11ad817f35d02f4574f59a0ed961ac.tar.gz kutter-05a04d5d3d11ad817f35d02f4574f59a0ed961ac.tar.xz kutter-05a04d5d3d11ad817f35d02f4574f59a0ed961ac.zip |
pause_resume: Use Octoprint's "paused" and "resumed" action commands.
These action commands prevent Octoprint from sending extra gcodes that can interfere with Klipper's pause/resume control.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/pause_resume.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/pause_resume.py b/klippy/extras/pause_resume.py index 114c2025..ee577908 100644 --- a/klippy/extras/pause_resume.py +++ b/klippy/extras/pause_resume.py @@ -33,7 +33,7 @@ class PauseResume: self.v_sd.do_pause() else: self.sd_paused = False - self.gcode.respond_info("action:pause") + self.gcode.respond_info("action:paused") self.pause_command_sent = True def cmd_PAUSE(self, params): if self.is_paused: @@ -58,7 +58,7 @@ class PauseResume: # Printing from virtual sd, run pause command self.v_sd.cmd_M24({}) else: - self.gcode.respond_info("action:resume") + self.gcode.respond_info("action:resumed") def load_config(config): return PauseResume(config) |