mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-05 12:25:03 +02:00
fix(console): Fix build issues when CONFIG_ESP_CONSOLE_NONE is enabled
This commit fixes the following build issues when CONFIG_ESP_CONSOLE_NONE is enabled: - vfs_console.c will attempt to register a VFS entry for STDIO console even if CONFIG_ESP_CONSOLE_NONE is enabled. This results in "undeclared `primary_path`" error. - esp_console_repl_chpi.c does not use "TAG" when CONFIG_ESP_CONSOLE_NONE is enabled, leading to a "defined by not used" warning. Closes https://github.com/espressif/esp-idf/issues/12984
This commit is contained in:
@@ -22,7 +22,9 @@
|
||||
|
||||
#include "console_private.h"
|
||||
|
||||
#if !CONFIG_ESP_CONSOLE_NONE
|
||||
static const char *TAG = "console.repl";
|
||||
#endif // !CONFIG_ESP_CONSOLE_NONE
|
||||
|
||||
#if CONFIG_ESP_CONSOLE_UART_DEFAULT || CONFIG_ESP_CONSOLE_UART_CUSTOM
|
||||
static esp_err_t esp_console_repl_uart_delete(esp_console_repl_t *repl);
|
||||
|
||||
Reference in New Issue
Block a user