From 4ad44e3e83c819dacb6f620abfdefdd1ecdf7caf Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 30 Jun 2018 14:08:02 -0400 Subject: 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 --- klippy/gcode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index 5e6bcecc..38e1124b 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -235,7 +235,7 @@ class GCodeParser: self.process_pending() self.is_processing_data = False return True - def run_script(self, script): + def run_script_from_command(self, script): prev_need_ack = self.need_ack try: self.process_commands(script.split('\n'), need_ack=False) @@ -390,7 +390,7 @@ class GCodeParser: e = extruders[index] if self.extruder is e: return - self.run_script(self.extruder.get_activate_gcode(False)) + self.run_script_from_command(self.extruder.get_activate_gcode(False)) try: self.toolhead.set_extruder(e) except homing.EndstopError as e: @@ -399,7 +399,7 @@ class GCodeParser: self.reset_last_position() self.extrude_factor = 1. self.base_position[3] = self.last_position[3] - self.run_script(self.extruder.get_activate_gcode(True)) + self.run_script_from_command(self.extruder.get_activate_gcode(True)) def cmd_mux(self, params): key, values = self.mux_commands[params['#command']] if None in values: -- cgit v1.2.3-70-g09d2