From cbc941282074856fc6179761b70a0c9879b0b64d Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 11 Oct 2011 21:56:36 +0200 Subject: update firmware to @319 --- firmware/i2c.c | 113 +++++++++++++++++++++++++++------------------------------ 1 file changed, 53 insertions(+), 60 deletions(-) (limited to 'firmware/i2c.c') diff --git a/firmware/i2c.c b/firmware/i2c.c index b7d55fe..4baa7bb 100644 --- a/firmware/i2c.c +++ b/firmware/i2c.c @@ -36,9 +36,12 @@ #include "common.h" #include "protocol.h" #include "i2c.h" +#define I2C_WAIT_FOR_COMPLETE() while (!(TWCR & (1<