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
Create and use a ConnectionStatus enum #47
Conversation
Officially ran tests which revealed some obvious oversights. I think I did the Only one thing missing, in Warnings were almost all resolved in a different branch, I think? The legitimate complaints here are the lacking docs on the variants for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
Should be good to go now! Added some extra stuff to Todos left:
|
I would like to draw attention to a3176b0 I removed this comments after a bit of digging. It looks like WL_IDLE_STATUS is a purely "internal" return value if I'm reading the code correctly. As for ApFailed, it looks like it is used in exactly two locations, both here. So it isn't unused as previously commented. |
a3176b0
to
b57d33b
Compare
b57d33b
to
dde693f
Compare
dde693f
to
1d4b5c2
Compare
1d4b5c2
to
fb3da45
Compare
fb3da45
to
2fc7606
Compare
2fc7606
to
3420268
Compare
3420268
to
e342ebe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, one inline question to think about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
I left one thought as well.
e342ebe
to
39f0a22
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good! Well done and thank you Dilyn!
Description
This PR attempts to satisfy the requirements of #42 by introducing a new
ConnectionStatus
enum type.The variants of
ConnectionStatus
are intended to align with the official Nina documentation, but slightly renamed to be more informative.The enum is currently defined in
src/wifi.rs
as a forward-looking design move.GitHub Issue: Closes #42
Changes
ConnectionStatus
enumTesting Strategy
Testing
cross/
in the usual way should work as intended. There should be no functional difference in this PR. (I have not run tests).Concerns
I worked with Jim on this as an intro problem, the changes in
src/{lib.rs,spi.rs}
are my own guesses :)At least two variants should be explored further, and they have comments explaining why.