From 4931b375c02bb7e1fd44d4c3e317ab08405ba2b6 Mon Sep 17 00:00:00 2001 From: Jade Mattsson Date: Fri, 18 Oct 2024 18:09:22 +1100 Subject: [PATCH] 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. --- components/base_nodemcu/user_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/base_nodemcu/user_main.c b/components/base_nodemcu/user_main.c index f2391b22a..0b86dbaf2 100644 --- a/components/base_nodemcu/user_main.c +++ b/components/base_nodemcu/user_main.c @@ -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); }