mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 07:27:43 -06:00
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>
This commit is contained in:
parent
53b718a621
commit
4ad44e3e83
6 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue