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:
parent
893c98ed1b
commit
856b22b387
|
@ -62,7 +62,7 @@ class BaseSensor(object):
|
||||||
self.event_running = False
|
self.event_running = False
|
||||||
def _exec_gcode(self, prefix, template):
|
def _exec_gcode(self, prefix, template):
|
||||||
try:
|
try:
|
||||||
self.gcode.run_script(prefix + template.render())
|
self.gcode.run_script(prefix + template.render() + "\nM400")
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception("Script running error")
|
logging.exception("Script running error")
|
||||||
def set_enable(self, runout, insert):
|
def set_enable(self, runout, insert):
|
||||||
|
|
Loading…
Reference in New Issue