From dcf7babf32256cc38635ad52b1960f011debbc3b Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 21 Mar 2020 00:34:22 +0100 Subject: [PATCH] ad7172: delint, doc --- src/ad7172/adc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ad7172/adc.rs b/src/ad7172/adc.rs index 353d63c..9d9a341 100644 --- a/src/ad7172/adc.rs +++ b/src/ad7172/adc.rs @@ -186,8 +186,9 @@ impl, NSS: OutputPin, E: fmt::Debug> Adc let checksum_out = checksum.result(); let mut data = reg_data.clone(); - let checksum_in = self.transfer(address, data.as_mut(), checksum_out)?; + self.transfer(address, data.as_mut(), checksum_out)?; + // Verification let readback_data = self.read_reg(reg)?; if *readback_data == **reg_data { return Ok(());