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 --- tests/ads1x13.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ads1x13.rs b/tests/ads1x13.rs index 89dd031..37a68d5 100644 --- a/tests/ads1x13.rs +++ b/tests/ads1x13.rs @@ -30,7 +30,7 @@ macro_rules! impl_tests { let config = Config::default().with_low(BitFlags::OS); let transactions = [ I2cTrans::write_read(DEV_ADDR, vec![Register::CONFIG], vec![config.msb(), config.lsb()] ) ]; let mut dev = $create(&transactions); - assert_would_block!(dev.read(&mut channel::A0)); + assert_would_block!(dev.read(&mut channel::DifferentialA0A1)); $destroy(dev); } } @@ -44,7 +44,7 @@ macro_rules! impl_tests { I2cTrans::write_read(DEV_ADDR, vec![Register::CONFIG], vec![config_with_os.msb(), config_with_os.lsb()]), I2cTrans::write_read(DEV_ADDR, vec![Register::CONVERSION], vec![0x80, 0x00] ) ]; let mut dev = $create(&transactions); - let measurement = block!(dev.read(&mut channel::A0{})).unwrap(); + let measurement = block!(dev.read(&mut channel::DifferentialA0A1)).unwrap(); assert_eq!($expected, measurement); $destroy(dev); } -- cgit v1.2.3-54-g00ecf