From e71eab04d00b63637533fb67021b862a49caaadb Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 3 Apr 2016 22:24:55 +0200 Subject: [PATCH] I2C: join these two send commands. Splitting them is no longer neccessary. --- i2c.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/i2c.c b/i2c.c index b5ff2f3..ca561b7 100644 --- a/i2c.c +++ b/i2c.c @@ -128,17 +128,8 @@ void i2c_init(uint8_t address) { #endif } -static void i2c_send_handler(void) { - - i2c_state = I2C_MODE_SAWP; // Just send. - - // Start transmission. - TWCR = (1<