-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
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
Incorrect pin assignment for cs in sd/spi.rs on git master branch #491
Comments
oh yeah that looks wrong, do you want to PR a quick fix? |
I've actually just realised it's "right" - looking at it again as the gpio.cs is mapped as|cd| in the closure, so it's actually dereffing the right pin anyway, just the captured variable name is wrong! I've been looking at misbehaving code all day, now it's all starting to look naughty to me! |
yeah its "right" that is technically correct but well it's still a "typo" overall ;P |
1st one I've done, so hoping it's right! |
Hi, trying to work out why my sdcard wasn't working, I was noodling through the source (i'm using the git [pathc.crates-io] in my Cargo.toml) and found the fololowing for spi_driver::new():
Appears the card detect pin is being mapped into the gpio_cs AND gpio_cd. Doesn't seem to effect functionality in my case as only sdcard is on this bus, but might stymie people with multiple spi devices?
Best, Jim
The text was updated successfully, but these errors were encountered: