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/gcode_macro.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/gcode_macro.py')
-rw-r--r-- | klippy/extras/gcode_macro.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/gcode_macro.py b/klippy/extras/gcode_macro.py index 08ad3b74..6d85f39f 100644 --- a/klippy/extras/gcode_macro.py +++ b/klippy/extras/gcode_macro.py @@ -21,7 +21,7 @@ class GCodeMacro: raise self.gcode.error("Macro %s called recursively" % (self.alias,)) self.in_script = True try: - self.gcode.run_script(self.script) + self.gcode.run_script_from_command(self.script) finally: self.in_script = False |