-
Notifications
You must be signed in to change notification settings - Fork 7
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
Setup panics if RX FIFO is not empty #16
Comments
If In case of error during a read operation, the data in the buffer are unreliable, there's no feed back to caller as to how many bytes were received before the error. A caller may rely on pattern matching to detect that? 🤷
This'd effectively ensure that |
This should be fixed by #17. |
As noticed here,
setup
will panic ifself.rx
is not empty. This could happen after an error condition infinish
.The text was updated successfully, but these errors were encountered: