aboutsummaryrefslogtreecommitdiff
path: root/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.c')
-rw-r--r--i2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i2c.c b/i2c.c
index 00dee14..a94b3a0 100644
--- a/i2c.c
+++ b/i2c.c
@@ -255,5 +255,8 @@ ISR(TWI_vect) {
assert (0 && "nope\n");
break;
}
+ if (twr.status == TWST_ERR || twr.status == TWST_OK) {
+ enableWakeup (WAKE_I2C);
+ }
}