Merge pull request #3160 from peter-harliman/wrong_index_lpc43xx_tx_end_ring

Fix wrong index at LPC43xx tx end ring assignment
pull/3193/head
Sam Grove 2016-11-09 15:22:14 -06:00 committed by GitHub
commit 7963e8e7c1
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ static void txdscr_init()
txdesc[i].Status = TX_LAST_SEGM | TX_FIRST_SEGM;;
txdesc[i].Ctrl = 0;
txdesc[i].BufAddr1 = (uint32_t)&txbuf[i];
if (i == (NUM_RX_FRAG - 1)) {
if (i == (NUM_TX_FRAG - 1)) {
txdesc[i].Status |= TX_END_RING;
}
}