summaryrefslogtreecommitdiff
path: root/embassy-embedded-hal/src/shared_bus/i2c.rs
diff options
context:
space:
mode:
authorHenrik Alsér <henrik@mindbite.se>2022-07-09 23:41:02 +0200
committerHenrik Alsér <henrik@mindbite.se>2022-07-09 23:41:02 +0200
commitbaae64d911d6f2bd2560b64b3856471b390f41cd (patch)
treea1818b56b817bd5f0897daf6ff372a48ce006231 /embassy-embedded-hal/src/shared_bus/i2c.rs
parent880b71a1e8246011109d64794ec98477722bde0e (diff)
downloadembassy-baae64d911d6f2bd2560b64b3856471b390f41cd.zip
Add embassy-embedded-hal nightly feature
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/i2c.rs')
-rw-r--r--embassy-embedded-hal/src/shared_bus/i2c.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/i2c.rs b/embassy-embedded-hal/src/shared_bus/i2c.rs
index 18f14453..f63190e6 100644
--- a/embassy-embedded-hal/src/shared_bus/i2c.rs
+++ b/embassy-embedded-hal/src/shared_bus/i2c.rs
@@ -27,6 +27,7 @@ use core::future::Future;
use embassy::blocking_mutex::raw::RawMutex;
use embassy::mutex::Mutex;
+#[cfg(feature = "nightly")]
use embedded_hal_async::i2c;
use crate::SetConfig;
@@ -64,6 +65,7 @@ where
type Error = I2cBusDeviceError<BUS::Error>;
}
+#[cfg(feature = "nightly")]
impl<M, BUS> i2c::I2c for I2cBusDevice<'_, M, BUS>
where
M: RawMutex + 'static,
@@ -139,6 +141,7 @@ where
type Error = I2cBusDeviceError<BUS::Error>;
}
+#[cfg(feature = "nightly")]
impl<M, BUS> i2c::I2c for I2cBusDeviceWithConfig<'_, M, BUS>
where
M: RawMutex + 'static,