aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/pause_resume.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-04-22 12:40:32 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-05-05 11:08:11 -0400
commitddb8311890a130e3735d77fbb7fb24900a5152b2 (patch)
tree8b80d4f7f298fb0b536c6fb4dc5156e245c0cc25 /klippy/extras/pause_resume.py
parent1eb2d4da902867b3bf4fdee1b2d272c170f93468 (diff)
downloadkutter-ddb8311890a130e3735d77fbb7fb24900a5152b2.tar.gz
kutter-ddb8311890a130e3735d77fbb7fb24900a5152b2.tar.xz
kutter-ddb8311890a130e3735d77fbb7fb24900a5152b2.zip
gcode: Create new wrapper class for gcode command parameters
Instead of passing a dictionary to the command handlers, create a wrapper class and pass that class to the command handlers. This can simplify the command handler code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/pause_resume.py')
-rw-r--r--klippy/extras/pause_resume.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/pause_resume.py b/klippy/extras/pause_resume.py
index 4b3b88b5..b70895cd 100644
--- a/klippy/extras/pause_resume.py
+++ b/klippy/extras/pause_resume.py
@@ -57,7 +57,7 @@ class PauseResume:
self.pause_command_sent = False
if self.sd_paused:
# Printing from virtual sd, run pause command
- self.v_sd.cmd_M24({})
+ self.v_sd.cmd_M24(gcmd)
else:
self.gcode.respond_info("action:resumed")
def cmd_CLEAR_PAUSE(self, params):