mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-28 16:46:31 +03:00
When the REPL input backend is unavailable, linenoise() may return NULL immediately. esp_console_repl_task() currently retries without yielding, which can make the console_repl task spin continuously. For USB Serial/JTAG console this can happen when the REPL is started without an attached USB host. Since the REPL task has priority 2, this can starve lower-priority tasks, prevent app_main from continuing after esp_console_start_repl(), and trigger the task watchdog due to IDLE not running. Add a small delay before retrying when linenoise() returns NULL. Closes https://github.com/espressif/esp-idf/issues/18485