From bb696dd20463591cd5cddb7fc4bf04af918663a8 Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" <19971886+dok-net@users.noreply.github.com> Date: Tue, 28 Jan 2020 01:47:39 +0100 Subject: [PATCH] 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 --- tests/host/common/Arduino.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/host/common/Arduino.cpp b/tests/host/common/Arduino.cpp index 4f8606bbd..8a0162b47 100644 --- a/tests/host/common/Arduino.cpp +++ b/tests/host/common/Arduino.cpp @@ -44,7 +44,7 @@ extern "C" bool can_yield() extern "C" void optimistic_yield (uint32_t interval_us) { - usleep(interval_us); + (void)interval_us; } extern "C" void esp_yield()