From b0024ecb45fe5f66549494571e3b11bf2c6ec9b2 Mon Sep 17 00:00:00 2001 From: Malte Brieske <9287988+mbrieske@users.noreply.github.com> Date: Wed, 13 Aug 2025 17:27:39 +0200 Subject: wait for STOP flag in blocking_write_vectored as well --- embassy-stm32/src/i2c/v2.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'embassy-stm32') 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> { } } // Wait until the write finishes - let result = self.wait_tc(timeout); + self.wait_tc(timeout)?; self.master_stop(); - result + self.wait_stop(timeout)?; + + Ok(()) } } -- cgit