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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user