KEIS

Dependents:   EthernetInterface_t

Fork of lwip-eth by mbed official

Revision:
6:59b01b9349d5
Parent:
5:698d868a5285
Child:
7:8938486fccab
--- 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;