lwip-eth

Fork of lwip-eth by mbed official

Revision:
27:fde88aaaea28
Parent:
21:10cdd9fe0509
Child:
31:da93f0f73711
--- a/arch/TARGET_Freescale/k64f_emac.c	Mon May 04 08:30:44 2015 +0100
+++ b/arch/TARGET_Freescale/k64f_emac.c	Mon Jun 15 07:15:45 2015 +0100
@@ -540,7 +540,7 @@
     /* Wait for receive task to wakeup */
     sys_arch_sem_wait(&k64f_enet->RxReadySem, 0);
 
-    if ((bdPtr[idx].control & kEnetRxBdEmpty) == 0) {
+    while ((bdPtr[idx].control & kEnetRxBdEmpty) == 0) {
       k64f_enetif_input(k64f_enet->netif, idx);
       idx = (idx + 1) % ENET_RX_RING_LEN;
     }