diff --git a/components/console/esp_console_repl_chip.c b/components/console/esp_console_repl_chip.c index 199669ae7c..2bc79bbf54 100644 --- a/components/console/esp_console_repl_chip.c +++ b/components/console/esp_console_repl_chip.c @@ -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); diff --git a/components/vfs/vfs_console.c b/components/vfs/vfs_console.c index 37d2c42098..eb65baf88d 100644 --- a/components/vfs/vfs_console.c +++ b/components/vfs/vfs_console.c @@ -207,10 +207,12 @@ esp_err_t esp_vfs_console_register(void) return err; } #endif +#if !CONFIG_ESP_CONSOLE_NONE err = esp_vfs_register_common(primary_path, strlen(primary_path), primary_vfs, NULL, &primary_vfs_index); if (err != ESP_OK) { return err; } +#endif // !CONFIG_ESP_CONSOLE_NONE // Secondary register part. #if CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG