diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-05-27 15:48:57 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-05-27 15:48:57 +0200 |
commit | b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2 (patch) | |
tree | 6631ffc3a28b4e77f3e242f9104ad75290eb41e3 /i2c.c | |
parent | d8092ae891d96da4bf6daac37a6588150e6a724e (diff) | |
download | hourglass-b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2.tar.gz hourglass-b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2.tar.bz2 hourglass-b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2.zip |
Fix compiler warnings
Diffstat (limited to 'i2c.c')
-rw-r--r-- | i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |