Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap panic handler to prevent spurious door openings. #70

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

h2zero
Copy link
Contributor

@h2zero h2zero commented Jul 20, 2024

When the GDO-BlaQ is restarted by software through a watchdog timeout or abort() or assert()the reset process can leave the UART TX in a HIGH state, which causes the output to go LOW, triggering the garage door to open/close unexpectedly. This adds a wrapper around the panic handler which switches the UART TX pin to a digital input with pulldown enabled which will cause the output to remain HIGH and avoid triggering the door.

@h2zero h2zero force-pushed the wrap-panic-handler branch from 9c03a02 to e00dded Compare July 20, 2024 00:27
garage-door-GDOv2-Q.yaml Outdated Show resolved Hide resolved
@heythisisnate heythisisnate merged commit 14fd3cf into master Jul 20, 2024
1 check passed
@h2zero h2zero deleted the wrap-panic-handler branch July 20, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants