From 271c127bd62f49d20a2701c354c93ef68fada677 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 11 Nov 2018 07:20:05 +0100 Subject: Use new channel selection types --- examples/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/linux.rs b/examples/linux.rs index aa1eec4..f4c7e87 100644 --- a/examples/linux.rs +++ b/examples/linux.rs @@ -11,6 +11,6 @@ use ads1x1x::{ Ads1x1x, SlaveAddr, channel }; fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); let mut adc = Ads1x1x::new_ads1013(dev, SlaveAddr::default()); - let measurement = block!(adc.read(&mut channel::A0)).unwrap(); + let measurement = block!(adc.read(&mut channel::DifferentialA0A1)).unwrap(); println!("Measurement: {}", measurement); } -- cgit v1.2.3-54-g00ecf