mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 09:30:26 +09:00
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:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user