diff options
Diffstat (limited to 'watch-library/watch')
-rw-r--r-- | watch-library/watch/watch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/watch/watch.c b/watch-library/watch/watch.c index ffb7d446..484cfada 100644 --- a/watch-library/watch/watch.c +++ b/watch-library/watch/watch.c @@ -358,12 +358,12 @@ void watch_enable_i2c() { } void watch_i2c_send(int16_t addr, uint8_t *buf, uint16_t length) { - i2c_m_sync_set_slaveaddr(&I2C_0, addr, I2C_M_SEVEN); + i2c_m_sync_set_periphaddr(&I2C_0, addr, I2C_M_SEVEN); io_write(I2C_0_io, buf, length); } void watch_i2c_receive(int16_t addr, uint8_t *buf, uint16_t length) { - i2c_m_sync_set_slaveaddr(&I2C_0, addr, I2C_M_SEVEN); + i2c_m_sync_set_periphaddr(&I2C_0, addr, I2C_M_SEVEN); io_read(I2C_0_io, buf, length); } |