diff --git a/embassy-stm32/src/i2c/mod.rs b/embassy-stm32/src/i2c/mod.rs index f898fcc8..1dffbd10 100644 --- a/embassy-stm32/src/i2c/mod.rs +++ b/embassy-stm32/src/i2c/mod.rs @@ -7,9 +7,9 @@ use crate::interrupt::Interrupt; mod _version; pub use _version::*; -#[cfg(feature = "time")] +#[cfg(all(i2c_v1, feature = "time"))] mod timeout; -#[cfg(feature = "time")] +#[cfg(all(i2c_v1, feature = "time"))] pub use timeout::*; use crate::peripherals;