diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 6ec0fa3b..a8d47d15 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -1094,9 +1094,9 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget) mmnif_lock_rx_hdr(own_ip_address && 0xff); mmnif->rx_buff->iv_intr = FALSE; mmnif_unlock_rx_hdr(own_ip_address && 0xff); - - DEBUGPRINTF("\nPOLLING ENABLED\n"); - +#ifdef DEBUG_MMNIF + DEBUGPRINTF("mmnif_wait(): heuristical polling enables\n"); +#endif sem_post(&mmnif->com_poll); mmnif->stats.bdg_overflow = 0; } @@ -1192,16 +1192,13 @@ int mmnif_poll(void* e) /* enable interrupts and suspend polling * */ -// sem_wait(&mmnif->com_poll); - mmnif_lock_rx_hdr(own_ip_address && 0xff); mmnif->rx_buff->iv_intr = TRUE; mmnif_unlock_rx_hdr(own_ip_address && 0xff); - - DEBUGPRINTF("\nINTERRUPTS ENABLED\n"); - +#ifdef DEBUG_MMNIF + DEBUGPRINTF("mmnif_poll(): heuristical interrupts enabled\n"); +#endif sem_wait(&mmnif->com_poll); - mmnif->stats.pll_empty = 1; } }