Skip to content

Commit e686532

Browse files
committed
wait for automatic stop
1 parent dd73c1e commit e686532

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/i2c.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ macro_rules! i2c {
631631
*byte = self.i2c.rxdr.read().rxdata().bits();
632632
}
633633

634-
// Wait until the read finishes
634+
// Wait for automatic stop
635635
busy_wait!(self.i2c, busy, is_not_busy);
636636

637637
Ok(())
@@ -658,7 +658,7 @@ macro_rules! i2c {
658658
*byte = self.i2c.rxdr.read().rxdata().bits();
659659
}
660660

661-
// Wait until the read finishes
661+
// Wait for automatic stop
662662
busy_wait!(self.i2c, busy, is_not_busy);
663663

664664
Ok(())

0 commit comments

Comments
 (0)