diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:20:05 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:20:05 +0100 |
commit | 271c127bd62f49d20a2701c354c93ef68fada677 (patch) | |
tree | 289a1fb88068306b24636a3366cf0a075f229779 /tests | |
parent | 410b31427ec16991ce02e4b91a357dbbaada971f (diff) | |
download | ads1x1x-async-271c127bd62f49d20a2701c354c93ef68fada677.tar.gz ads1x1x-async-271c127bd62f49d20a2701c354c93ef68fada677.tar.xz ads1x1x-async-271c127bd62f49d20a2701c354c93ef68fada677.zip |
Use new channel selection types
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ads1x13.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |