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
Just noticed a problem when wanting to use the i2c feature only. This doesn't compile and gives the error:
error[E0432]: unresolved import `spi`
--> /home/.../.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/bma400-0.1.0/src/lib.rs:193:9
|
193 | pub use spi::SPIInterface;
| ^^^ help: a similar path exists: `embedded_hal::spi`
I think L193 should use cfg(...spi...) instead of i2c.
The text was updated successfully, but these errors were encountered:
webhet
changed the title
feature i2c fails to compile if fetaure spi isn't enabed
feature i2c fails to compile if feature spi isn't enabed
Jul 11, 2023
You are correct @webhet, good catch and thank you for reporting this! I've made the changes above. I'll merge them into a new release and publish to crates.io shortly.
Hi,
very cool and well designed crate.
Just noticed a problem when wanting to use the i2c feature only. This doesn't compile and gives the error:
I think L193 should use cfg(...spi...) instead of i2c.
The text was updated successfully, but these errors were encountered: