From 15050f8ace8b514f21ea3bbb29a8585ea349917c Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Wed, 4 Aug 2021 12:03:54 -0400 Subject: drop legacy terminology. how hard was that? --- watch-library/watch/watch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'watch-library/watch') 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); } -- cgit v1.2.3