We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ad03a commit e6e9383Copy full SHA for e6e9383
src/sdio.rs
@@ -250,8 +250,7 @@ impl Sdio {
250
let capacity = if ocr.high_capacity() {
251
CardCapacity::SDHC
252
} else {
253
- // Note: SDSC Not supported yet
254
- return Err(Error::UnsupportedCardType);
+ CardCapacity::SDSC
255
};
256
257
// Get CID
@@ -292,6 +291,9 @@ impl Sdio {
292
291
293
self.card.replace(card);
294
+ // Wait before setting the bus witdth and frequency to avoid timeouts on SDSC cards
295
+ while !self.card_ready()? {}
296
+
297
self.set_bus(self.bw, freq)?;
298
Ok(())
299
}
0 commit comments