return a fail on i2c error

This commit is contained in:
Gautier Hattenberger
2011-03-15 15:16:34 +01:00
parent aeb90c3626
commit 541884fd10
+1 -1
View File
@@ -114,7 +114,7 @@ __attribute__ ((always_inline)) static inline void I2cAutomaton(int32_t state, s
}
else {
/* error , we should have got NACK */
I2cSendStop(p,trans);
I2cFail(p,trans);
}
break;
case I2C_MR_DATA_NACK: