Warning
This post was published 71 days ago. The information described in this article may have changed.
I have just copied my code onto a new sd card (I'm using a Raspberry Pi 5), the code was working beautifully on my old sd card. The rust version on the old sd card is 1.86, the rust version on the new sd card is 1.87. My code is exactly the same, just copied across, and I've tried rebuilding. The problem is on this line:
let _ = spi.as_mut().expect("Result::Err").transfer(&mut readdata, &senddata);
Compiler responds with "Io(Os can't find file) ", referring to the ("Result::Err"). The Raspberry Pi Os on both SD cards is precisely the same (Bookworm) and I've done the sudo update and upgrade. Anyone know a workaround/ is it possible to downgrade the rust version on my new sd card from 1.87 to 1.86? I have 3 different programs I've copied across to the new sd card and I'm experiencing exacly the same Result::Err issue with all 3 programs.
1 post - 1 participant
🏷️ rust_feed