Skip to content

Commit 7963e8e

Browse files
authored
Merge pull request #3160 from peter-harliman/wrong_index_lpc43xx_tx_end_ring
Fix wrong index at LPC43xx tx end ring assignment
2 parents e175f61 + b3e5c97 commit 7963e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static void txdscr_init()
432432
txdesc[i].Status = TX_LAST_SEGM | TX_FIRST_SEGM;;
433433
txdesc[i].Ctrl = 0;
434434
txdesc[i].BufAddr1 = (uint32_t)&txbuf[i];
435-
if (i == (NUM_RX_FRAG - 1)) {
435+
if (i == (NUM_TX_FRAG - 1)) {
436436
txdesc[i].Status |= TX_END_RING;
437437
}
438438
}

0 commit comments

Comments
 (0)