mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
[lpc21] fix typo in i2c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user