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
4b2098bc58
commit
38a16e05d9
@@ -368,6 +368,8 @@ static esp_err_t esp_console_common_init(size_t max_cmdline_length, esp_console_
|
|||||||
|
|
||||||
#if CONFIG_LOG_COLORS
|
#if CONFIG_LOG_COLORS
|
||||||
console_config.hint_color = atoi(LOG_COLOR_CYAN);
|
console_config.hint_color = atoi(LOG_COLOR_CYAN);
|
||||||
|
#else
|
||||||
|
console_config.hint_color = -1;
|
||||||
#endif
|
#endif
|
||||||
ret = esp_console_init(&console_config);
|
ret = esp_console_init(&console_config);
|
||||||
if (ret != ESP_OK) {
|
if (ret != ESP_OK) {
|
||||||
|
Reference in New Issue
Block a user