diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-04-22 12:40:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-05-05 11:08:11 -0400 |
commit | ddb8311890a130e3735d77fbb7fb24900a5152b2 (patch) | |
tree | 8b80d4f7f298fb0b536c6fb4dc5156e245c0cc25 /klippy/extras/homing_override.py | |
parent | 1eb2d4da902867b3bf4fdee1b2d272c170f93468 (diff) | |
download | kutter-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/homing_override.py')
-rw-r--r-- | klippy/extras/homing_override.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/homing_override.py b/klippy/extras/homing_override.py index 8a40044c..b15b3b9f 100644 --- a/klippy/extras/homing_override.py +++ b/klippy/extras/homing_override.py @@ -54,7 +54,7 @@ class HomingOverride: self.gcode.reset_last_position() # Perform homing kwparams = { 'printer': self.template.create_status_wrapper() } - kwparams['params'] = params + kwparams['params'] = params.get_command_parameters() try: self.in_script = True self.template.run_gcode_from_command(kwparams) |