aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/probe.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/probe.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/probe.py')
-rw-r--r--klippy/extras/probe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py
index 703ef5b4..3d84aa9e 100644
--- a/klippy/extras/probe.py
+++ b/klippy/extras/probe.py
@@ -410,7 +410,8 @@ class ProbePointsHelper:
def _manual_probe_start(self):
done = self._move_next()
if not done:
- manual_probe.ManualProbeHelper(self.printer, {},
+ gcmd = self.gcode.create_gcode_command("", "", {})
+ manual_probe.ManualProbeHelper(self.printer, gcmd,
self._manual_probe_finalize)
def _manual_probe_finalize(self, kin_pos):
if kin_pos is None: