[lpc21] fix typo in i2c

This commit is contained in:
Felix Ruess
2013-08-27 19:38:32 +02:00
parent 1330f21064
commit 2089734274
+1 -1
View File
@@ -337,7 +337,7 @@ bool_t i2c_submit(struct i2c_periph* p, struct i2c_transaction* t) {
if (idx >= I2C_TRANSACTION_QUEUE_LEN) idx = 0;
if (idx == p->trans_extract_idx) {
/* queue full */
periph->errors->queue_full_cnt++;
p->errors->queue_full_cnt++;
t->status = I2CTransFailed;
return FALSE;
}