We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I just stumbled upon a problem that seems to be related to this PR: #179
Bottomline: nrf-hal-common won't compile.
I'm using the master branch, and here's what happens:
= note: expected fn pointer `fn(&mut saadc::Saadc, &mut PIN) -> core::result::Result<_, nb::Error<()>>` (enum `nb::Error`) found fn pointer `fn(&mut saadc::Saadc, &mut PIN) -> core::result::Result<_, nb::Error<()>>` (enum `nb::Error`) = note: perhaps two different versions of crate `nb` are being used?
This affects saadc and timer modules. In two cases the "expected" and "found" look identical as seen above, but then they aren't:
saadc
timer
= note: expected enum `nb::Error<void::Void>` found enum `nb::Error<_>` = note: perhaps two different versions of crate `nb` are being used?
If I run cargo tree it does confirm that two different versions of nb are used: v1.0.0 in the nrf-common-hal, and v0.1.2 in embedded-hal.
cargo tree
So I checked something that works for me: https://github.com/nebelgrau77/ItsyBitsy_nRF52840_ADC_serialTX - this uses the v0.11.0 of the nrf-common-hal, pulled from crates.io, so the nb version was still v0.1.2.
In fact downgrading it back to 0.1.2 in a local fork of the master fixed it.
There's a big fat chance I'm missing something, though! :)
Originally posted by @nebelgrau77 in #179 (comment)
The text was updated successfully, but these errors were encountered:
Have you tried running cargo update? nb 0.1.3 is compatible with nb 1.0.0
cargo update
nb
0.1.3
1.0.0
Sorry, something went wrong.
That solved the problem, thank you!
No branches or pull requests
I just stumbled upon a problem that seems to be related to this PR: #179
Bottomline: nrf-hal-common won't compile.
I'm using the master branch, and here's what happens:
This affects
saadc
andtimer
modules.In two cases the "expected" and "found" look identical as seen above, but then they aren't:
If I run
cargo tree
it does confirm that two different versions of nb are used: v1.0.0 in the nrf-common-hal, and v0.1.2 in embedded-hal.So I checked something that works for me: https://github.com/nebelgrau77/ItsyBitsy_nRF52840_ADC_serialTX - this uses the v0.11.0 of the nrf-common-hal, pulled from crates.io, so the nb version was still v0.1.2.
In fact downgrading it back to 0.1.2 in a local fork of the master fixed it.
There's a big fat chance I'm missing something, though! :)
Originally posted by @nebelgrau77 in #179 (comment)
The text was updated successfully, but these errors were encountered: