mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-09-28 18:55:02 +00:00
Added sleep in main thread if it has nothing to do (PPPoS)
This commit is contained in:
parent
92a32dbce4
commit
a4ee79c04d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user