aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/i2c/v2.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs
index aeb4c1c00..3b09f1b34 100644
--- a/embassy-stm32/src/i2c/v2.rs
+++ b/embassy-stm32/src/i2c/v2.rs
@@ -582,9 +582,11 @@ impl<'d, M: Mode, IM: MasterMode> I2c<'d, M, IM> {
582 } 582 }
583 } 583 }
584 // Wait until the write finishes 584 // Wait until the write finishes
585 let result = self.wait_tc(timeout); 585 self.wait_tc(timeout)?;
586 self.master_stop(); 586 self.master_stop();
587 result 587 self.wait_stop(timeout)?;
588
589 Ok(())
588 } 590 }
589} 591}
590 592