Skip to content

Commit

Permalink
wait for automatic stop
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrackow committed Nov 3, 2022
1 parent dd73c1e commit e686532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ macro_rules! i2c {
*byte = self.i2c.rxdr.read().rxdata().bits();
}

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

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

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

Ok(())
Expand Down

0 comments on commit e686532

Please sign in to comment.