mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +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 >= I2C_TRANSACTION_QUEUE_LEN) idx = 0;
|
||||||
if (idx == p->trans_extract_idx) {
|
if (idx == p->trans_extract_idx) {
|
||||||
/* queue full */
|
/* queue full */
|
||||||
periph->errors->queue_full_cnt++;
|
p->errors->queue_full_cnt++;
|
||||||
t->status = I2CTransFailed;
|
t->status = I2CTransFailed;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user