cpu/cc2538/periph/i2c: Made cppcheck happy

This commit is contained in:
Marian Buschsieweke 2019-08-27 13:47:49 +02:00
parent 5ea305f352
commit 1a51b01db9
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -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)