Add serial command/protocol for throwing an error from the hardware #52
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: 16mm/mcopy#52
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Need to be able to pass an error from mcopy firmware to the app over serial in a situation where synchronous behavior is not occurring. If a frame takes too long or is abnormally short, the firmware should be able to send a character or formatted string to the app so that the user is alerted to the issue and the sequence pauses/stops/cancels. This will prevent sequences from running through multiple errors and will give users a chance to fix physical problems with their hardware.
Decided on reserving the capital 'E' character as a catch-all error signal from the firmware. If the arduino module catches a stray 'E' it will signal the main process and the renderer process to pause (not stop) a sequence. Need to test this on real firmware, but have outlined this in an upcoming commit.