fix(newlib/stdio): remove incorrect check in /dev/console init

Closes https://github.com/espressif/esp-idf/issues/13439
This commit is contained in:
Tomáš Rohlínek 2024-04-17 14:50:07 +02:00
parent 7278d06c4f
commit 0b4fff69c5
No known key found for this signature in database
GPG Key ID: BDE1CEDD10F7E372

View File

@ -200,7 +200,7 @@ void esp_newlib_init_global_stdio(const char *stdio_dev)
ESP_SYSTEM_INIT_FN(init_newlib_stdio, CORE, BIT(0), 115)
{
#if defined(CONFIG_VFS_SUPPORT_IO) && !defined(CONFIG_ESP_CONSOLE_NONE)
#if defined(CONFIG_VFS_SUPPORT_IO)
esp_newlib_init_global_stdio("/dev/console");
#else
esp_newlib_init_global_stdio(NULL);