diff options
Diffstat (limited to 'src/construction.rs')
-rw-r--r-- | src/construction.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/construction.rs b/src/construction.rs index e217c85..d6463df 100644 --- a/src/construction.rs +++ b/src/construction.rs @@ -5,13 +5,12 @@ use crate::{ DEVICE_BASE_ADDRESS, }; use core::marker::PhantomData; -use embedded_hal::blocking; macro_rules! impl_new_destroy { ( $IC:ident, $create:ident, $destroy:ident, $conv:ty ) => { impl<I2C, E> Ads1x1x<I2cInterface<I2C>, ic::$IC, $conv, mode::OneShot> where - I2C: blocking::i2c::Write<Error = E> + blocking::i2c::WriteRead<Error = E>, + I2C: embedded_hal::i2c::I2c<Error = E>, { /// Create a new instance of the device in OneShot mode. pub fn $create(i2c: I2C, address: SlaveAddr) -> Self { |