From eb21ac7485fbbe189c9d4a0baffb3320a8427ee8 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Tue, 5 Apr 2016 21:21:38 +0200 Subject: [PATCH] I2C: wrap the currently abandoned code for reading properly. Not removed entirely, because it might be needed later. --- i2c.c | 8 +++++--- i2c.h | 13 +++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/i2c.c b/i2c.c index 819e9ad..d1b9355 100644 --- a/i2c.c +++ b/i2c.c @@ -345,8 +345,9 @@ ISR(TWI_vect) { // Try to resend when the bus became free. TWCR = (1<