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

Avoid microcontroller getting stuck in an infinite loop #157

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

loostrum
Copy link
Member

@loostrum loostrum commented Feb 6, 2024

This can happen if the host stops sending data due to e.g. a crash.

The loops waiting for data from the host now have a timeout (default 2s), after which the device is reset if nothing is received.

@loostrum loostrum linked an issue Feb 6, 2024 that may be closed by this pull request
@loostrum loostrum merged commit 395d08e into main Feb 6, 2024
17 checks passed
@loostrum loostrum deleted the 155-avoid-inf-loop branch February 6, 2024 14:43
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.

Avoid hang on application crash
1 participant