Merge pull request #4543 from mbrieske/fix_blocking_i2c

fix STM32: wait for STOP flag in blocking_write_vectored
This commit is contained in:
Dario Nieuwenhuis 2025-08-13 19:49:00 +02:00 committed by GitHub
commit 86973d2186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(())
}
}