Output Feature: Shutdown on Serial Connection Error or Disconnect #439
Reference in New Issue
Block a user
Delete Branch "feature/shutdown_on_error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I added a toggle that allows to automatically turn off an output, when there was an error detected over the serial connection or a disconnect happened.
The detection is based on the ERROR, DISCONNECTED and PRINTER_STATE_CHANGED Events from the EventPlugin.
Error and disconnected always triggers the automatic turn off, PRINTER_STATE_CHANGED triggers it if the new state contains 'error'.
In the past my printer randomly disconnected during a print, which stopped all movement, but the heating elements were still running. So I use this feature to cut the power to my printer, if it for some reason disconnects during a print, as an additional security measure.
Thanks for the PR!