Skip to content

Commit e6e9383

Browse files
committed
Added support for SCSD cards
1 parent 36ad03a commit e6e9383

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sdio.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ impl Sdio {
250250
let capacity = if ocr.high_capacity() {
251251
CardCapacity::SDHC
252252
} else {
253-
// Note: SDSC Not supported yet
254-
return Err(Error::UnsupportedCardType);
253+
CardCapacity::SDSC
255254
};
256255

257256
// Get CID
@@ -292,6 +291,9 @@ impl Sdio {
292291

293292
self.card.replace(card);
294293

294+
// Wait before setting the bus witdth and frequency to avoid timeouts on SDSC cards
295+
while !self.card_ready()? {}
296+
295297
self.set_bus(self.bw, freq)?;
296298
Ok(())
297299
}

0 commit comments

Comments
 (0)