We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4106c52 commit c8b8a0eCopy full SHA for c8b8a0e
src/storage/sd_card.rs
@@ -52,6 +52,10 @@ impl<'a> SDCardStorage<'a> {
52
if self.sd_card_driver.is_some() {
53
bail!("Driver already installed");
54
}
55
+ let mut host_config = SdMmcHostConfiguration::new();
56
+ // Notice: the dev board use external pullups
57
+ // TODO: make this configurable?
58
+ host_config.enable_internal_pullups = false;
59
self.sd_card_driver = Some(SdCardDriver::new_mmc(
60
SdMmcHostDriver::new_4bits(
61
peripherals.slot,
@@ -63,7 +67,7 @@ impl<'a> SDCardStorage<'a> {
63
67
peripherals.d3,
64
68
None::<gpio::AnyIOPin>,
65
69
66
- &SdMmcHostConfiguration::new(),
70
+ &host_config,
71
)?,
72
&SdCardConfiguration::new(),
73
)?);
0 commit comments