You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
One problem with this is that it forces users to use borrowing instead of ownership transfer, which is problematic when you don't need borrowing but want to store the flash object in something like an RTFM resource.
Allow it to be freed.
This should be done regardless, since I believe you just need to add a single method for this.
I suppose which approach is better depends on your code style. Eg allowing free accomodates programing styles that need storing, but generally borrowing allows simpler code, since you don't have to manage spi state - you just initialize the peripherals and forget about it.
Anecdotally, it seems like most of the crates I use (including the one I'm currently having a conflict here with) use the borrow approach.
AFAIK, you can't use this with any other SPI peripherals on the same SPI.
2 solns:
I think the first is the better approach. Thoughts?
The text was updated successfully, but these errors were encountered: