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.
1 parent a181da1 commit 3c526cbCopy full SHA for 3c526cb
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