diff options
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 27381cd3c..8c8df79dd 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -110,9 +110,9 @@ impl<'d, M: Mode> I2c<'d, M> { | |||
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | // Wait for the bus to be free | 112 | // Wait for the bus to be free |
| 113 | while info.regs.isr().read().busy(){ | 113 | while info.regs.isr().read().busy() { |
| 114 | timeout.check()?; | 114 | timeout.check()?; |
| 115 | }; | 115 | } |
| 116 | 116 | ||
| 117 | let reload = if reload { | 117 | let reload = if reload { |
| 118 | i2c::vals::Reload::NOTCOMPLETED | 118 | i2c::vals::Reload::NOTCOMPLETED |
