diff --git a/embedded-hal-bus/src/i2c/atomic.rs b/embedded-hal-bus/src/i2c/atomic.rs index f7e9fd58..c6905c88 100644 --- a/embedded-hal-bus/src/i2c/atomic.rs +++ b/embedded-hal-bus/src/i2c/atomic.rs @@ -92,7 +92,7 @@ impl Error for AtomicError { } } -unsafe impl<'a, T> Sync for AtomicDevice<'a, T> {} +unsafe impl<'a, T> Send for AtomicDevice<'a, T> {} impl<'a, T> AtomicDevice<'a, T> where diff --git a/embedded-hal-bus/src/i2c/mod.rs b/embedded-hal-bus/src/i2c/mod.rs index 724fad63..5295492f 100644 --- a/embedded-hal-bus/src/i2c/mod.rs +++ b/embedded-hal-bus/src/i2c/mod.rs @@ -9,4 +9,4 @@ pub use mutex::*; mod critical_section; pub use self::critical_section::*; mod atomic; -pub use self::atomic::*; +pub use atomic::*;