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>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user