aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-10-25 15:17:59 -0400
committerBrian Cully <bjc@kublai.com>2022-10-25 15:17:59 -0400
commitcffe2c0b84345a720ece0dd07a84d1d113ba39c9 (patch)
treef2f284e27c1b10e6690491fe696fc082c8eddd43 /src
parent4dc2d0ce0d16b1f173483df0a457e60e93fb1ab1 (diff)
downloadluchie-cffe2c0b84345a720ece0dd07a84d1d113ba39c9.tar.gz
luchie-cffe2c0b84345a720ece0dd07a84d1d113ba39c9.zip
don't blindly return ok in ‘Cirque::rd’
Diffstat (limited to 'src')
-rw-r--r--src/cirque.rs2
1 files changed, 1 insertions, 1 deletions
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<S>(&mut self, spi: &mut S, addr: u8, data: u8) -> Result<(), S::Error>