summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f2198fe..2f8d64b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -147,7 +147,7 @@ where
{
set_cs(chip_select, Low)?;
- spi.transfer_in_place(buffer).map_err(|e| Error::SpiError(e))?;
+ spi.read(buffer).map_err(|e| Error::SpiError(e))?;
set_cs(chip_select, High)
}