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/gcode_arcs.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/gcode_arcs.py')
-rw-r--r-- | klippy/extras/gcode_arcs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/gcode_arcs.py b/klippy/extras/gcode_arcs.py index 61b1a0fc..eec746d1 100644 --- a/klippy/extras/gcode_arcs.py +++ b/klippy/extras/gcode_arcs.py @@ -54,7 +54,8 @@ class ArcSupport: g1_params['E'] = asE / len(coords) if asF is not None: g1_params['F'] = asF - self.gcode.cmd_G1(g1_params) + g1_gcmd = self.gcode.create_gcode_command("G1", "G1", g1_params) + self.gcode.cmd_G1(g1_gcmd) # function planArc() originates from marlin plan_arc() # https://github.com/MarlinFirmware/Marlin |