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/probe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'klippy/extras/probe.py') 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: -- cgit v1.2.3-70-g09d2