summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-08-04 12:03:54 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-08-04 12:09:33 -0400
commit15050f8ace8b514f21ea3bbb29a8585ea349917c (patch)
tree9b8164c479cd05a3498818b95ca984afeee50d1c /watch-library/watch/watch.c
parent99942154f70da83a1b3c3c624166a03ca5c5e886 (diff)
downloadSensor-Watch-15050f8ace8b514f21ea3bbb29a8585ea349917c.tar.gz
Sensor-Watch-15050f8ace8b514f21ea3bbb29a8585ea349917c.tar.bz2
Sensor-Watch-15050f8ace8b514f21ea3bbb29a8585ea349917c.zip
drop legacy terminology. how hard was that?
Diffstat (limited to 'watch-library/watch/watch.c')
-rw-r--r--watch-library/watch/watch.c4
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);
}