Skip to content

Commit 01da43c

Browse files
elpieleldruin
authored andcommitted
chore: fix README usage example
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
1 parent 2096627 commit 01da43c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ designed for readability and simplicity over performance.
1111
You will need something that implements the `BlockDevice` trait, which can read and write the 512-byte blocks (or sectors) from your card. If you were to implement this over USB Mass Storage, there's no reason this crate couldn't work with a USB Thumb Drive, but we only supply a `BlockDevice` suitable for reading SD and SDHC cards over SPI.
1212

1313
```rust
14-
let mut spi_dev = embedded_sdmmc::SdMmcSpi::new(embedded_sdmmc::SdMmcSpi::new(sdmmc_spi, sdmmc_cs), time_source);
14+
let mut spi_dev = embedded_sdmmc::SdMmcSpi::new(sdmmc_spi, sdmmc_cs);
1515
write!(uart, "Init SD card...").unwrap();
1616
match spi_dev.acquire() {
1717
Ok(block) => {

0 commit comments

Comments
 (0)