diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-07-29 16:16:35 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-07-29 16:16:35 +0200 |
commit | f76d64e8db03c56c45afbbb60da801d7a801d460 (patch) | |
tree | b0f00b5af319333ed303becc377e86117fb9335c /i2c.c | |
parent | c6f7452ab86675465959b5f8784e3140438a56ba (diff) | |
download | hourglass-f76d64e8db03c56c45afbbb60da801d7a801d460.tar.gz hourglass-f76d64e8db03c56c45afbbb60da801d7a801d460.tar.bz2 hourglass-f76d64e8db03c56c45afbbb60da801d7a801d460.zip |
i2c: Make sure status is _OK
Not sure if this fixes anything.
Diffstat (limited to 'i2c.c')
-rw-r--r-- | i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,14 +64,14 @@ void twInit () { #endif twr.mode = TWM_INVALID; - twr.status = TWST_ERR; + twr.status = TWST_OK; } /* high-level write */ bool twRequest (const twMode mode, const uint8_t address, const uint8_t subaddress, uint8_t * const data, const uint8_t count) { - assert (twr.status != TWST_WAIT); + assert (twr.status == TWST_OK); twr.mode = mode; twr.address = address; |