mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 07:46:11 +01:00
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 <kevin@koconnor.net>
This commit is contained in:
committed by
KevinOConnor
parent
1aa11fed8c
commit
5bca4e6fa1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user