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