From 131c87b127528da01a4cbd8be84a78f11badc011 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sun, 17 May 2020 15:36:41 +0300 Subject: [PATCH] Update main.cpp --- cores/esp32/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp32/main.cpp b/cores/esp32/main.cpp index ad0f58fd..3c09badd 100644 --- a/cores/esp32/main.cpp +++ b/cores/esp32/main.cpp @@ -10,9 +10,9 @@ TaskHandle_t loopTaskHandle = NULL; void yieldIfNecessary(void){ static uint64_t lastYield = 0; uint64_t now = millis(); - if((now - lastYield) > 4000) { + if((now - lastYield) > 2000) { lastYield = now; - vTaskDelay(1); //delay 1 RTOS tick + vTaskDelay(5); //delay 1 RTOS tick } } #endif