ESP-IDF Robot Controls

This commit is contained in:
2024-12-25 12:00:27 -05:00
parent 12dfa190cc
commit 2c859b346e

View File

@@ -828,7 +828,8 @@ void app_main(void)
* To avoid a task watchdog timeout, add a delay here. When you replace the way you process the data,
* usually you don't need this delay (as this task will block for a while).
*/
vTaskDelay(1);
//vTaskDelay(1);
vTaskDelay(CONFIG_BLINK_PERIOD / portTICK_PERIOD_MS);
} else if (ret == ESP_ERR_TIMEOUT) {
//We try to read `EXAMPLE_READ_LEN` until API returns timeout, which means there's no available data
break;