From 25e8f89567bf6ab79fdfa66eabc9ba5296b7238a Mon Sep 17 00:00:00 2001 From: Qinghao Shi Date: Fri, 9 Nov 2018 16:44:50 +0000 Subject: [PATCH] update wait_ms() to sleep_for() --- .../emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111/fvp_emac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/netsocket/emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111/fvp_emac.cpp b/features/netsocket/emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111/fvp_emac.cpp index 0ae6d34b27..47d471ec8f 100644 --- a/features/netsocket/emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111/fvp_emac.cpp +++ b/features/netsocket/emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111/fvp_emac.cpp @@ -232,7 +232,7 @@ bool fvp_EMAC::power_up() mbed::mbed_event_queue()->call(mbed::callback(this, &fvp_EMAC::phy_task)); /* Allow the PHY task to detect the initial link state and set up the proper flags */ - wait_ms(10); + ThisThread::sleep_for(10); _phy_task_handle = mbed::mbed_event_queue()->call_every(PHY_TASK_PERIOD_MS, mbed::callback(this, &fvp_EMAC::phy_task));