From ddb8311890a130e3735d77fbb7fb24900a5152b2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 22 Apr 2020 12:40:32 -0400 Subject: 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 --- klippy/extras/pause_resume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/pause_resume.py') 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): -- cgit v1.2.3-70-g09d2