diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/asynch/i2c.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/asynch/i2c.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs b/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs index 71ce09def..6de685ee1 100644 --- a/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs +++ b/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs | |||
| @@ -50,8 +50,8 @@ where | |||
| 50 | 50 | ||
| 51 | impl<M, BUS> i2c::I2c for I2cDevice<'_, M, BUS> | 51 | impl<M, BUS> i2c::I2c for I2cDevice<'_, M, BUS> |
| 52 | where | 52 | where |
| 53 | M: RawMutex + 'static, | 53 | M: RawMutex, |
| 54 | BUS: i2c::I2c + 'static, | 54 | BUS: i2c::I2c, |
| 55 | { | 55 | { |
| 56 | async fn read(&mut self, address: u8, read: &mut [u8]) -> Result<(), I2cDeviceError<BUS::Error>> { | 56 | async fn read(&mut self, address: u8, read: &mut [u8]) -> Result<(), I2cDeviceError<BUS::Error>> { |
| 57 | let mut bus = self.bus.lock().await; | 57 | let mut bus = self.bus.lock().await; |
| @@ -124,8 +124,8 @@ where | |||
| 124 | 124 | ||
| 125 | impl<M, BUS> i2c::I2c for I2cDeviceWithConfig<'_, M, BUS> | 125 | impl<M, BUS> i2c::I2c for I2cDeviceWithConfig<'_, M, BUS> |
| 126 | where | 126 | where |
| 127 | M: RawMutex + 'static, | 127 | M: RawMutex, |
| 128 | BUS: i2c::I2c + SetConfig + 'static, | 128 | BUS: i2c::I2c + SetConfig, |
| 129 | { | 129 | { |
| 130 | async fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), I2cDeviceError<BUS::Error>> { | 130 | async fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), I2cDeviceError<BUS::Error>> { |
| 131 | let mut bus = self.bus.lock().await; | 131 | let mut bus = self.bus.lock().await; |
