From 5bca4e6fa17c0aac325960575fc0901fc60c6da0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 12 Feb 2020 13:20:12 -0500 Subject: [PATCH] gcode: Add a "command_error" event notifier Allow other modules to be notified if there is a gcode command error detected. Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/klippy/gcode.py b/klippy/gcode.py index 3335bfbb..7e861864 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -235,6 +235,7 @@ class GCodeParser: except self.error as e: self.respond_error(str(e)) self.reset_last_position() + self.printer.send_event("gcode:command_error") if not need_ack: raise except: