console: disable colored hints if CONFIG_LOG_COLORS is not set

This commit is contained in:
Ivan Grokhotkov 2022-03-11 20:53:38 +01:00
parent a8ba5a0264
commit 49e8b97de3
No known key found for this signature in database
GPG Key ID: 1E050E141B280628

View File

@ -368,6 +368,8 @@ static esp_err_t esp_console_common_init(size_t max_cmdline_length, esp_console_
#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) {