aboutsummaryrefslogtreecommitdiff
path: root/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.c')
-rw-r--r--i2c.c3
1 files changed, 3 insertions, 0 deletions
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;