Added sleep in main thread if it has nothing to do (PPPoS)

This commit is contained in:
goldsimon 2009-12-07 14:58:51 +00:00
parent 92a32dbce4
commit a4ee79c04d

View File

@ -479,6 +479,8 @@ void main_loop()
#if USE_ETHERNET
/* check for packets and link status*/
ethernetif_poll(&netif);
#else /* USE_ETHERNET */
sys_msleep(10);
#endif /* USE_ETHERNET */
#if !LWIP_NETIF_LOOPBACK_MULTITHREADING
/* check for loopback packets on all netifs */