aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
diff options
context:
space:
mode:
authorMalte Brieske <[email protected]>2025-08-13 17:27:39 +0200
committerMalte Brieske <[email protected]>2025-08-13 17:27:39 +0200
commitb0024ecb45fe5f66549494571e3b11bf2c6ec9b2 (patch)
tree939e2ecf1c46040efbe349b94bcab0fa142c0aa3 /embassy-stm32/src
parentf689cd10000d3c5d608907d52c686abcc6c0971f (diff)
wait for STOP flag in blocking_write_vectored as well
Diffstat (limited to 'embassy-stm32/src')
-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