Open quan-thecreator opened 4 months ago
Thanks for writing.
I'm a little confused. This crate is definitely being used in no_std contexts, so something must have gone wrong here.
Maybe you or one of your dependencies forgot default_features = false
for the void crate?
I definitely want to update the crate to the new embedded hal version, but currently I'm not sure when I'll have time to do so.
The countdown trait required by the
timer
arg for initializing an object of thePn532
struct has a member function like so: docs.rswhich references the Void empty enum provided by the
void
crate. This crate does not supply a no_std feature/distribution, and therefore should not be used in an embedded crate like this one. However, this can be trivially solved by replacingVoid
with()
, which has the same effect. I've done this in my fork: https://github.com/quan-thecreator/pn532/tree/masterLastly, I believe an overhaul to
embedded-hal v1.0.0
is required to solve inconveniences like the following:Should I create a PR for solving the Void type problem?