From 19783d6b8c6bf8a8c065e75a5c0aeeebb23a84e9 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 8 Dec 2024 19:22:58 +0000 Subject: Use read instead of transfer_in_place --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- cgit v1.2.3-54-g00ecf