Skip to content

Commit

Permalink
cpu/cc2538/periph/i2c: Made cppcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Aug 27, 2019
1 parent 5ea305f commit 1a51b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/cc2538/periph/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a51b01

Please sign in to comment.