diff --git a/src/avr/i2c.c b/src/avr/i2c.c index 4632497e..370582cc 100644 --- a/src/avr/i2c.c +++ b/src/avr/i2c.c @@ -84,6 +84,14 @@ i2c_send_byte(uint8_t b, uint32_t timeout) i2c_wait(timeout); } +static void +i2c_receive_byte(uint8_t *read, uint32_t timeout, uint8_t send_ack) +{ + TWCR = (1<i2c_config, reg_len, reg, data_len, data);