From c2e4de6c9325be6538f61954dd1cd6bc502ea6ae Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Tue, 13 Nov 2018 19:32:42 +0100 Subject: Add destroying device to example --- examples/linux.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/linux.rs') diff --git a/examples/linux.rs b/examples/linux.rs index f4c7e87..7f65c52 100644 --- a/examples/linux.rs +++ b/examples/linux.rs @@ -13,4 +13,5 @@ fn main() { let mut adc = Ads1x1x::new_ads1013(dev, SlaveAddr::default()); let measurement = block!(adc.read(&mut channel::DifferentialA0A1)).unwrap(); println!("Measurement: {}", measurement); + let _dev = adc.destroy_ads1013(); // get I2C device back } -- cgit v1.2.3-54-g00ecf