diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index 4c0c566f3..f5cf3e90a 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -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;