Skip to content

Commit

Permalink
Merge pull request RIOT-OS#12372 from aabadie/pr/cpu/nrf52_multiple_i2c
Browse files Browse the repository at this point in the history
cpu/nrf52: allow accessing multiple i2c peripherals
  • Loading branch information
aabadie authored Oct 4, 2019
2 parents e867da3 + c1b9573 commit 825303c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpu/nrf52/periph/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ static mutex_t locks[I2C_NUMOF];

static inline NRF_TWIM_Type *bus(i2c_t dev)
{
(void) dev;
return i2c_config[0].dev;
return i2c_config[dev].dev;
}

static int finish(i2c_t dev)
Expand Down

0 comments on commit 825303c

Please sign in to comment.