From b3ca672f70c71194da40a7670549a8264c13d971 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 12 Jan 2024 20:24:51 +0100 Subject: Update to `embedded-hal` 1.0. --- src/construction.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/construction.rs') 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 Ads1x1x, ic::$IC, $conv, mode::OneShot> where - I2C: blocking::i2c::Write + blocking::i2c::WriteRead, + I2C: embedded_hal::i2c::I2c, { /// Create a new instance of the device in OneShot mode. pub fn $create(i2c: I2C, address: SlaveAddr) -> Self { -- cgit v1.2.3-54-g00ecf