Skip to content

Commit 6cfbee7

Browse files
committed
optimistic_yield is a yield, not a delay, and avoids yielding if last yield has occurred recently enough.
1 parent 00440cd commit 6cfbee7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/host/common/Arduino.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ extern "C" bool can_yield()
4444

4545
extern "C" void optimistic_yield (uint32_t interval_us)
4646
{
47-
usleep(interval_us);
4847
}
4948

5049
extern "C" void esp_yield()

0 commit comments

Comments
 (0)