Skip to content

Commit bb696dd

Browse files
host build: optimistic_yield() wrongly delays() instead of avoiding excessive yields (#6802)
* optimistic_yield is a yield, not a delay, and avoids yielding if last yield has occurred recently enough. * Suppress an unused argument warning. Co-authored-by: Earle F. Philhower, III <[email protected]>
1 parent 7b0fa35 commit bb696dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/host/common/Arduino.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" bool can_yield()
4444

4545
extern "C" void optimistic_yield (uint32_t interval_us)
4646
{
47-
usleep(interval_us);
47+
(void)interval_us;
4848
}
4949

5050
extern "C" void esp_yield()

0 commit comments

Comments
 (0)