diff options
| author | Henrik Alsér <[email protected]> | 2022-07-06 23:45:08 +0200 |
|---|---|---|
| committer | Henrik Alsér <[email protected]> | 2022-07-06 23:45:08 +0200 |
| commit | e6887200f56b65c3ff1c2cf52cf9c46b4f33c437 (patch) | |
| tree | 7a4bd1e67aa59c75fe1032516cf96ed1bde10906 | |
| parent | 5492b5c121d47d682d3befc06c581fd8cd2c1e2b (diff) | |
v2 fix
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 9309d7725..9d8dd5ca1 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -855,7 +855,9 @@ mod eh1 { | |||
| 855 | type Error = Error; | 855 | type Error = Error; |
| 856 | } | 856 | } |
| 857 | 857 | ||
| 858 | impl<'d, T: Instance> embedded_hal_1::i2c::blocking::I2c for I2c<'d, T> { | 858 | impl<'d, T: Instance, TXDMA: TxDma<T>, RXDMA: RxDma<T>> embedded_hal_1::i2c::blocking::I2c |
| 859 | for I2c<'d, T, TXDMA, RXDMA> | ||
| 860 | { | ||
| 859 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { | 861 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { |
| 860 | self.blocking_read(address, buffer) | 862 | self.blocking_read(address, buffer) |
| 861 | } | 863 | } |
