mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
emulation on host: Fix optimistic_yield(interval_us) (#5772)
optimistic_yield() takes micro seconds not milliseconds as interval parameter
This commit is contained in:
parent
14f1b1d4a7
commit
b93b37fb81
@ -424,9 +424,9 @@ void esp_schedule (void)
|
||||
{
|
||||
}
|
||||
|
||||
void optimistic_yield (uint32_t ms)
|
||||
void optimistic_yield (uint32_t interval_us)
|
||||
{
|
||||
usleep(ms * 1000);
|
||||
usleep(interval_us);
|
||||
}
|
||||
|
||||
void dns_setserver (u8_t numdns, ip_addr_t *dnsserver)
|
||||
|
Loading…
x
Reference in New Issue
Block a user