diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-30 14:08:02 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-30 14:08:02 -0400 |
commit | 4ad44e3e83c819dacb6f620abfdefdd1ecdf7caf (patch) | |
tree | aeaf4276b2b17a3e531c25201041dcc82d040020 /klippy/extras/probe.py | |
parent | 53b718a62128cda3858182a9456b73db79389816 (diff) | |
download | kutter-4ad44e3e83c819dacb6f620abfdefdd1ecdf7caf.tar.gz kutter-4ad44e3e83c819dacb6f620abfdefdd1ecdf7caf.tar.xz kutter-4ad44e3e83c819dacb6f620abfdefdd1ecdf7caf.zip |
gcode: Rename run_script() to run_script_from_command()
Emphasize that the run_script() method is only valid when run from a
g-code command.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/probe.py')
-rw-r--r-- | klippy/extras/probe.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index f89770a6..26eaa932 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -106,10 +106,10 @@ class ProbeEndstopWrapper: self.query_endstop_wait = self.mcu_endstop.query_endstop_wait self.TimeoutError = self.mcu_endstop.TimeoutError def home_prepare(self): - self.gcode.run_script(self.activate_gcode) + self.gcode.run_script_from_command(self.activate_gcode) self.mcu_endstop.home_prepare() def home_finalize(self): - self.gcode.run_script(self.deactivate_gcode) + self.gcode.run_script_from_command(self.deactivate_gcode) self.mcu_endstop.home_finalize() # Wrapper that records the last XY position of a virtual endstop probe @@ -186,7 +186,7 @@ class ProbePointsHelper: if self.probe is not None: try: while self.busy: - self.gcode.run_script("PROBE") + self.gcode.run_script_from_command("PROBE") self.cmd_NEXT({}) except: self.finalize(False) |