diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2024-12-08 19:22:58 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2024-12-08 19:22:58 +0000 |
commit | 19783d6b8c6bf8a8c065e75a5c0aeeebb23a84e9 (patch) | |
tree | 1dfe7488b899e6fb6308fb901a146f5d2ea8ca61 | |
parent | deaf0dc5ed4643f228265d197cd72f7d3a7b0e4a (diff) | |
download | max31855-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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |