diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-03-05 14:40:14 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-03-05 14:40:14 +0100 |
commit | 8ef987d9fef178c88c51f3dbff73decc58e763db (patch) | |
tree | 6a98b6c4b8cd9a03f5fca2c7d8620b51fd900ae6 | |
parent | 88b71e25e2463aa6425a01b60b171f36f1029ea6 (diff) | |
download | hourglass-8ef987d9fef178c88c51f3dbff73decc58e763db.tar.gz hourglass-8ef987d9fef178c88c51f3dbff73decc58e763db.tar.bz2 hourglass-8ef987d9fef178c88c51f3dbff73decc58e763db.zip |
i2c: Add missing break
-rw-r--r-- | i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |