From 6cfbee74576a70ce47316cfc9b67230ee938ddea Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" Date: Mon, 18 Nov 2019 22:03:15 +0100 Subject: [PATCH 1/2] optimistic_yield is a yield, not a delay, and avoids yielding if last yield has occurred recently enough. --- tests/host/common/Arduino.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/host/common/Arduino.cpp b/tests/host/common/Arduino.cpp index 4f8606bbd0..9d07e7bc6a 100644 --- a/tests/host/common/Arduino.cpp +++ b/tests/host/common/Arduino.cpp @@ -44,7 +44,6 @@ extern "C" bool can_yield() extern "C" void optimistic_yield (uint32_t interval_us) { - usleep(interval_us); } extern "C" void esp_yield() From 79f01f02d2acc8e6a592d4d7b1a7921672930ac0 Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" Date: Mon, 18 Nov 2019 22:08:19 +0100 Subject: [PATCH 2/2] Suppress an unused argument warning. --- tests/host/common/Arduino.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/host/common/Arduino.cpp b/tests/host/common/Arduino.cpp index 9d07e7bc6a..8a0162b477 100644 --- a/tests/host/common/Arduino.cpp +++ b/tests/host/common/Arduino.cpp @@ -44,6 +44,7 @@ extern "C" bool can_yield() extern "C" void optimistic_yield (uint32_t interval_us) { + (void)interval_us; } extern "C" void esp_yield()