Skip to content

Commit 25e8f89

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
update wait_ms() to sleep_for()
1 parent 78b186e commit 25e8f89

File tree

1 file changed

+1
-1
lines changed
  • features/netsocket/emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111

1 file changed

+1
-1
lines changed

features/netsocket/emac-drivers/TARGET_ARM_FM/COMPONENT_LAN91C111/fvp_emac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ bool fvp_EMAC::power_up()
232232
mbed::mbed_event_queue()->call(mbed::callback(this, &fvp_EMAC::phy_task));
233233

234234
/* Allow the PHY task to detect the initial link state and set up the proper flags */
235-
wait_ms(10);
235+
ThisThread::sleep_for(10);
236236

237237
_phy_task_handle = mbed::mbed_event_queue()->call_every(PHY_TASK_PERIOD_MS, mbed::callback(this, &fvp_EMAC::phy_task));
238238

0 commit comments

Comments
 (0)