Merge pull request #1180 from mbedmicro/enet_rx_process_all

Update k64f_emac.c
pull/1170/head^2
Martin Kojtal 2015-06-15 08:06:10 +02:00
commit 77a973c009
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ static void packet_rx(void* pvParameters) {
/* 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;
}