Skip to content

Commit b93b37f

Browse files
everslickd-a-v
authored andcommitted
emulation on host: Fix optimistic_yield(interval_us) (#5772)
optimistic_yield() takes micro seconds not milliseconds as interval parameter
1 parent 14f1b1d commit b93b37f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/host/common/user_interface.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,9 @@ void esp_schedule (void)
424424
{
425425
}
426426

427-
void optimistic_yield (uint32_t ms)
427+
void optimistic_yield (uint32_t interval_us)
428428
{
429-
usleep(ms * 1000);
429+
usleep(interval_us);
430430
}
431431

432432
void dns_setserver (u8_t numdns, ip_addr_t *dnsserver)

0 commit comments

Comments
 (0)