aboutsummaryrefslogtreecommitdiff
path: root/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.c')
-rw-r--r--i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i2c.c b/i2c.c
index 7fe4fd2..00dee14 100644
--- a/i2c.c
+++ b/i2c.c
@@ -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;