cpu/cc2538/periph/i2c: Made cppcheck happy
This commit is contained in:
parent
5ea305f352
commit
1a51b01db9
@ -159,7 +159,7 @@ static void _i2c_master_slave_addr(uint16_t addr, bool receive)
|
||||
{
|
||||
DEBUG("%s (%" PRIx16 ", %d)\n", __FUNCTION__, addr, (int)receive);
|
||||
assert(!(addr & 0x80));
|
||||
I2CM_SA = (addr << 1) | receive;
|
||||
I2CM_SA = (addr << 1) | (receive ? 0x1 : 0x0);
|
||||
}
|
||||
|
||||
static void _i2c_master_data_put(uint8_t data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user