Skip to content

Commit f33d027

Browse files
committed
fix: I2C transaction continued read broken (atsamd-rs#858)
1 parent 657c50b commit f33d027

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hal/src/sercom/i2c/reg.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ impl<S: Sercom> Registers<S> {
478478
/// without a repeated start condition in between
479479
#[inline]
480480
pub(super) fn continue_read(&mut self, buffer: &mut [u8]) -> Result<(), Error> {
481+
// Ensure the next read is properly initialized
482+
self.cmd_read();
481483
self.fill_buffer(buffer)
482484
}
483485

0 commit comments

Comments
 (0)