diff options
| author | Henrik Alsér <[email protected]> | 2022-07-07 08:32:00 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-07-07 15:46:30 +0200 |
| commit | 399e7a47916a0f7cf8f7da654aa09eebe924054b (patch) | |
| tree | 2284e0de5a632250bdcfb513603607d589721192 | |
| parent | be731b222e24e7463dcdf907c60077cd6b1c3f05 (diff) | |
NoDma
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 9d8dd5ca1..d7aa65a16 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -855,9 +855,7 @@ mod eh1 { | |||
| 855 | type Error = Error; | 855 | type Error = Error; |
| 856 | } | 856 | } |
| 857 | 857 | ||
| 858 | impl<'d, T: Instance, TXDMA: TxDma<T>, RXDMA: RxDma<T>> embedded_hal_1::i2c::blocking::I2c | 858 | impl<'d, T: Instance> embedded_hal_1::i2c::blocking::I2c for I2c<'d, T, NoDma, NoDma> { |
| 859 | for I2c<'d, T, TXDMA, RXDMA> | ||
| 860 | { | ||
| 861 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { | 859 | fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), Self::Error> { |
| 862 | self.blocking_read(address, buffer) | 860 | self.blocking_read(address, buffer) |
| 863 | } | 861 | } |
