From c68343af9e680323c74726e9f071ddcbe236b78a Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 21 Nov 2018 09:54:14 +0100 Subject: Rename variable --- examples/linux.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/linux.rs b/examples/linux.rs index 242c9b9..d0b2bc5 100644 --- a/examples/linux.rs +++ b/examples/linux.rs @@ -12,8 +12,8 @@ fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); let address = SlaveAddr::default(); let mut adc = Ads1x1x::new_ads1013(dev, address); - let measurement = block!(adc.read(&mut channel::DifferentialA0A1)).unwrap(); - println!("Measurement: {}", measurement); + let value = block!(adc.read(&mut channel::DifferentialA0A1)).unwrap(); + println!("Measurement: {}", value); // get I2C device back let _dev = adc.destroy_ads1013(); } -- cgit v1.2.3-54-g00ecf