summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/linux.rs1
1 files changed, 1 insertions, 0 deletions
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
}