forked from espressif/esp-idf
console: disable colored hints if CONFIG_LOG_COLORS is not set
This commit is contained in:
committed by
Mahavir Jain
parent
1ffc02dfaf
commit
be564ffd28
@@ -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) {
|
||||
|
Reference in New Issue
Block a user