mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 12:20:37 +00:00
Merge pull request #4543 from mbrieske/fix_blocking_i2c
fix STM32: wait for STOP flag in blocking_write_vectored
This commit is contained in:
commit
86973d2186
@ -582,9 +582,11 @@ impl<'d, M: Mode, IM: MasterMode> I2c<'d, M, IM> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Wait until the write finishes
|
// Wait until the write finishes
|
||||||
let result = self.wait_tc(timeout);
|
self.wait_tc(timeout)?;
|
||||||
self.master_stop();
|
self.master_stop();
|
||||||
result
|
self.wait_stop(timeout)?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user