From ff2344a75e10c36819fa46634aef013c2b1c240a Mon Sep 17 00:00:00 2001 From: Folkert van Heusden Date: Sat, 30 Mar 2024 14:15:28 +0100 Subject: [PATCH] delay => vTaskDelay --- ESP32/console_esp32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ESP32/console_esp32.cpp b/ESP32/console_esp32.cpp index 3bd5de3..690a1b6 100644 --- a/ESP32/console_esp32.cpp +++ b/ESP32/console_esp32.cpp @@ -32,7 +32,8 @@ int console_esp32::wait_for_char_ll(const short timeout) return port->read(); } - delay(10); +// delay(10); + vTaskDelay(10 / portTICK_PERIOD_MS); } return -1; @@ -103,7 +104,7 @@ void console_esp32::panel_update_thread() pixels.show(); for(;;) { - vTaskDelay(20 / portTICK_RATE_MS); + vTaskDelay(20 / portTICK_PERIOD_MS); try { // note that these are approximately as there's no mutex on the emulation