From b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 27 May 2014 15:48:57 +0200 Subject: Fix compiler warnings --- i2c.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'i2c.c') diff --git a/i2c.c b/i2c.c index 3e4bffb..84479a1 100644 --- a/i2c.c +++ b/i2c.c @@ -30,9 +30,12 @@ static void twFlushContRaw () { TWCR = (TWCR & ~((1 << TWSTA) | (1 << TWSTO))) | (1 << TWIE) | (1 << TWINT) | (1 << TWEN) | (1 << TWEA); } +#if 0 +/* unused */ static void twWaitRaw () { while (!(TWCR & (1 << TWINT))); } +#endif static bool twWriteRaw (const uint8_t data) { TWDR = data; -- cgit v1.2.3