From b9b5349b4b78a5d59be4a7e4a11f712e2f6a8256 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 11 Nov 2018 11:44:24 +0100 Subject: Move setting the thresholds to tier2 features --- tests/ads1x1x_i2c.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tests/ads1x1x_i2c.rs') diff --git a/tests/ads1x1x_i2c.rs b/tests/ads1x1x_i2c.rs index 2d8e7e2..e3dbf21 100644 --- a/tests/ads1x1x_i2c.rs +++ b/tests/ads1x1x_i2c.rs @@ -9,22 +9,6 @@ mod common; use common::{ new_ads1013, destroy_ads1013, DEVICE_ADDRESS as DEV_ADDR, Register, BitFlags, Config }; -#[test] -fn can_set_low_threshold() { - let transactions = [ I2cTrans::write(DEV_ADDR, vec![Register::LOW_TH, 0x7F, 0xF0]) ]; - let mut dev = new_ads1013(&transactions); - dev.set_low_threshold(2047).unwrap(); - destroy_ads1013(dev); -} - -#[test] -fn can_set_high_threshold() { - let transactions = [ I2cTrans::write(DEV_ADDR, vec![Register::HIGH_TH, 0x7F, 0xF0]) ]; - let mut dev = new_ads1013(&transactions); - dev.set_high_threshold(2047).unwrap(); - destroy_ads1013(dev); -} - macro_rules! test_set_data_rate { ($name:ident, $variant:ident, $config:expr) => { -- cgit v1.2.3-54-g00ecf