Skip to content

Commit 71c2803

Browse files
Ensure we only send FF during reads.
1 parent debe580 commit 71c2803

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sdmmc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ where
295295
return Err(Error::ReadError);
296296
}
297297

298+
for b in buffer.iter_mut() {
299+
*b = 0xFF;
300+
}
298301
self.spi.transfer(buffer).map_err(|_e| Error::Transport)?;
299302

300303
let mut crc = u16::from(self.receive()?);

0 commit comments

Comments
 (0)