diff options
Diffstat (limited to 'nuttx/net/netdev_register.c')
-rw-r--r-- | nuttx/net/netdev_register.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/net/netdev_register.c b/nuttx/net/netdev_register.c index d9387c796..fd5656cfc 100644 --- a/nuttx/net/netdev_register.c +++ b/nuttx/net/netdev_register.c @@ -102,7 +102,7 @@ void netdev_semtake(void) { /* Take the semaphore (perhaps waiting) */ - while (sem_wait(&g_netdev_sem) != 0) + while (uip_lockedwait(&g_netdev_sem) != 0) { /* The only case that an error should occr here is if * the wait was awakened by a signal. |