my version

Fork of lwip-eth by mbed official

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Mon Jun 03 12:06:46 2013 +0100
Parent:
5:698d868a5285
Child:
7:5754e05385b8
Commit message:
De-allocate all queued TX pbufs

Changed in this revision

arch/lpc17_emac.c Show annotated file Show diff for this revision Revisions of this file
--- a/arch/lpc17_emac.c	Thu May 30 17:15:45 2013 +0100
+++ b/arch/lpc17_emac.c	Mon Jun 03 12:06:46 2013 +0100
@@ -823,7 +823,7 @@
             LPC_EMAC->IntClear = EMAC_INT_TX_UNDERRUN;
             
             /* De-allocate all queued TX pbufs */
-            for (idx = 0; idx < LPC_NUM_BUFF_RXDESCS; idx++) {
+            for (idx = 0; idx < LPC_NUM_BUFF_TXDESCS; idx++) {
                 if (lpc_enetif->txb[idx] != NULL) {
                     pbuf_free(lpc_enetif->txb[idx]);
                     lpc_enetif->txb[idx] = NULL;