Skip to content

Commit ad067ea

Browse files
committed
Update main.cpp
1 parent 31d5120 commit ad067ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ TaskHandle_t loopTaskHandle = NULL;
1010
void yieldIfNecessary(void){
1111
static uint64_t lastYield = 0;
1212
uint64_t now = millis();
13-
if((now - lastYield) > 4000) {
13+
if((now - lastYield) > 2000) {
1414
lastYield = now;
15-
vTaskDelay(1); //delay 1 RTOS tick
15+
vTaskDelay(5); //delay 1 RTOS tick
1616
}
1717
}
1818
#endif

0 commit comments

Comments
 (0)