Increase console task stack size.

This allegedly resolves the reboot crashes seen on ESP32-S3 Zero.
It also removes the peculiar need to explicitly call
esp_vfs_console_register(), the absence of which previously would
trigger an assertion failure in xQueueGenericSend on input.
This commit is contained in:
Jade Mattsson 2024-10-18 18:09:22 +11:00
parent bee12d0a15
commit 4931b375c0
1 changed files with 2 additions and 3 deletions

View File

@ -196,8 +196,6 @@ static void console_task(void *)
static void console_init(void)
{
esp_vfs_console_register();
fflush(stdout);
fsync(fileno(stdout));
@ -260,7 +258,8 @@ static void console_init(void)
#endif
xTaskCreate(
console_task, "console", 1024, NULL, ESP_TASK_MAIN_PRIO+1, NULL);
console_task, "console", configMINIMAL_STACK_SIZE,
NULL, ESP_TASK_MAIN_PRIO+1, NULL);
}