From aed984c265089a3c9ee63178728a15323c52ef45 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 14 Nov 2019 21:00:52 +0100 Subject: [PATCH] Fixed the state of network_wait. --- src/network/network.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/network/network.c b/src/network/network.c index a36d64b9d..869da50b3 100644 --- a/src/network/network.c +++ b/src/network/network.c @@ -12,7 +12,7 @@ * it should be malloc'ed and then linked to the NETCARD def. * Will be done later. * - * Version: @(#)network.c 1.0.11 2019/11/14 + * Version: @(#)network.c 1.0.12 2019/11/14 * * Author: Fred N. van Kempen, * @@ -99,7 +99,7 @@ static netcard_t net_cards[] = { int network_type; int network_ndev; int network_card; -volatile int network_wait; +volatile int network_wait = 0; char network_host[522]; netdev_t network_devs[32]; #ifdef ENABLE_NIC_LOG @@ -221,6 +221,8 @@ network_attach(void *dev, uint8_t *mac, NETRXCB rx) net_cards[network_card].rx = rx; network_mac = mac; + network_wait = 0; + /* Create the network events. */ poll_data.wake_poll_thread = thread_create_event(); poll_data.poll_complete = thread_create_event();