We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a181da1 + 3c526cb commit fb847b9Copy full SHA for fb847b9
src/i2c.rs
@@ -348,7 +348,7 @@ impl<I2C: Instance> I2c<I2C> {
348
}
349
Address::Ten(addr) => {
350
let [msbs, lsbs] = addr.to_be_bytes();
351
- let msbs = ((msbs & 0b11) << 1) & 0b11110000;
+ let msbs = ((msbs & 0b11) << 1) | 0b11110000;
352
let dr = self.i2c.dr();
353
if first_transaction {
354
dr.write(|w| unsafe { w.bits(u32::from(msbs)) });
0 commit comments