aboutsummaryrefslogtreecommitdiff
path: root/i2c.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-03-05 14:40:14 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-03-05 14:40:14 +0100
commit8ef987d9fef178c88c51f3dbff73decc58e763db (patch)
tree6a98b6c4b8cd9a03f5fca2c7d8620b51fd900ae6 /i2c.c
parent88b71e25e2463aa6425a01b60b171f36f1029ea6 (diff)
downloadhourglass-8ef987d9fef178c88c51f3dbff73decc58e763db.tar.gz
hourglass-8ef987d9fef178c88c51f3dbff73decc58e763db.tar.bz2
hourglass-8ef987d9fef178c88c51f3dbff73decc58e763db.zip
i2c: Add missing break
Diffstat (limited to 'i2c.c')
-rw-r--r--i2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i2c.c b/i2c.c
index 2a342b1..ef2392e 100644
--- a/i2c.c
+++ b/i2c.c
@@ -67,7 +67,7 @@ bool twRequest (const twMode mode, const uint8_t address,
twr.i = 0;
twr.step = 0;
twr.status = TWST_WAIT;
- /* wait for stop finish */
+ /* wait for stop finish; there is no interrupt generated for this */
while (TW_STATUS != 0xf8);
twStartRaw ();
@@ -182,6 +182,7 @@ static void twIntRead () {
} else {
twr.status = TWST_ERR;
}
+ break;
case 5:
if (TW_STATUS == TW_MR_DATA_ACK) {