From cffe2c0b84345a720ece0dd07a84d1d113ba39c9 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 25 Oct 2022 15:17:59 -0400 Subject: =?UTF-8?q?don't=20blindly=20return=20ok=20in=20=E2=80=98Cirque::r?= =?UTF-8?q?d=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cirque.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cirque.rs b/src/cirque.rs index b1f5fae..c026ea4 100644 --- a/src/cirque.rs +++ b/src/cirque.rs @@ -238,7 +238,7 @@ where .and_then(|_| spi.transfer(buf)); self.cs_pin.set_high().ok(); - Ok(()) + res } fn wr(&mut self, spi: &mut S, addr: u8, data: u8) -> Result<(), S::Error> -- cgit v1.2.3