Open
Description
Hi! We're using avr-hal and avr-device with an atmega164pa uC.
We tried bumping our Rust toolchain, as you have done with 2eb28fa.
This causes incorrect ADC readings. We've literally changed nothing else, and suddenly an analog_read
on Pin<Analog, PA0>
returns usually 0
, sometimes 1
, but never a value in the hundreds, as would be expected in our situation.
I guess it could be due to some unsafe
weirdness in our codebase, but I mean the ADC is set up normally, and then it's just a call to analog_read
, really. Not sure how much of our codebase I can share; I could probably build a minimal example to show the behavior. Just figured I'd ask first if anyone has any ideas about this. Works just fine on nightly-2023-12-28
.
Thanks!