summaryrefslogtreecommitdiff
path: root/digital/mimot/src/dirty/twi_proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/mimot/src/dirty/twi_proto.c')
-rw-r--r--digital/mimot/src/dirty/twi_proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/mimot/src/dirty/twi_proto.c b/digital/mimot/src/dirty/twi_proto.c
index a6894109..3048c594 100644
--- a/digital/mimot/src/dirty/twi_proto.c
+++ b/digital/mimot/src/dirty/twi_proto.c
@@ -67,10 +67,10 @@ twi_proto_init (void)
void
twi_proto_update (void)
{
- u8 buf[AC_TWI_SL_RECV_BUFFER_SIZE];
+ u8 buf[AC_TWI_SLAVE_RECV_BUFFER_SIZE];
u8 read_data;
/* Handle incoming command. */
- while ((read_data = twi_sl_poll (buf, sizeof (buf))))
+ while ((read_data = twi_slave_poll (buf, sizeof (buf))))
twi_proto_callback (buf, read_data);
/* Update status. */
u8 status_with_crc[8];
@@ -89,7 +89,7 @@ twi_proto_update (void)
/* Compute CRC. */
status_with_crc[0] = crc_compute (&status_with_crc[1],
sizeof (status_with_crc) - 1);
- twi_sl_update (status_with_crc, sizeof (status_with_crc));
+ twi_slave_update (status_with_crc, sizeof (status_with_crc));
}
/** Handle one command. */