diff options
author | Arksine <arksine.code@gmail.com> | 2019-07-03 17:28:02 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-07-10 09:57:46 -0400 |
commit | 856b22b38775496e7b30007490325604d979073b (patch) | |
tree | 9d5534138efa10a079e4c3243cb7ca2a4ff5b90d | |
parent | 893c98ed1b38624b27b83c924c9605fe51f98e4c (diff) | |
download | kutter-856b22b38775496e7b30007490325604d979073b.tar.gz kutter-856b22b38775496e7b30007490325604d979073b.tar.xz kutter-856b22b38775496e7b30007490325604d979073b.zip |
filament_switch_sensor: postfix M400 to script
Finish Moves needs be a hard requirement for the event gcodes, as it eliminates the possiblility of an event firing while the gcode is executing.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r-- | klippy/extras/filament_switch_sensor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/filament_switch_sensor.py b/klippy/extras/filament_switch_sensor.py index 260332ec..20df5959 100644 --- a/klippy/extras/filament_switch_sensor.py +++ b/klippy/extras/filament_switch_sensor.py @@ -62,7 +62,7 @@ class BaseSensor(object): self.event_running = False def _exec_gcode(self, prefix, template): try: - self.gcode.run_script(prefix + template.render()) + self.gcode.run_script(prefix + template.render() + "\nM400") except Exception: logging.exception("Script running error") def set_enable(self, runout, insert): |