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>
This commit is contained in:
Arksine authored and KevinOConnor committed 2019-07-10 09:57:46 -04:00
1 parent 893c98ed1b
commit 856b22b387
1 file changed
+1 -1
+1 -1
View File
@@ -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):