summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2024-12-08 19:22:58 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2024-12-08 19:22:58 +0000
commit19783d6b8c6bf8a8c065e75a5c0aeeebb23a84e9 (patch)
tree1dfe7488b899e6fb6308fb901a146f5d2ea8ca61
parentdeaf0dc5ed4643f228265d197cd72f7d3a7b0e4a (diff)
downloadmax31855-async-19783d6b8c6bf8a8c065e75a5c0aeeebb23a84e9.tar.gz
max31855-async-19783d6b8c6bf8a8c065e75a5c0aeeebb23a84e9.tar.xz
max31855-async-19783d6b8c6bf8a8c065e75a5c0aeeebb23a84e9.zip
Use read instead of transfer_in_place
-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)
}