From cffe2c0b84345a720ece0dd07a84d1d113ba39c9 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 25 Oct 2022 15:17:59 -0400 Subject: don't blindly return ok in ‘Cirque::rd’ 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.3