From be564ffd28901416e7692203e4b8730cd0596840 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 11 Mar 2022 20:53:38 +0100 Subject: [PATCH] console: disable colored hints if CONFIG_LOG_COLORS is not set --- components/console/esp_console_repl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/console/esp_console_repl.c b/components/console/esp_console_repl.c index 772de2e825..09929931b5 100644 --- a/components/console/esp_console_repl.c +++ b/components/console/esp_console_repl.c @@ -368,6 +368,8 @@ static esp_err_t esp_console_common_init(esp_console_repl_com_t *repl_com) esp_console_config_t console_config = ESP_CONSOLE_CONFIG_DEFAULT(); #if CONFIG_LOG_COLORS console_config.hint_color = atoi(LOG_COLOR_CYAN); +#else + console_config.hint_color = -1; #endif ret = esp_console_init(&console_config); if (ret != ESP_OK) {