diff --git a/cores/esp32/esp32-hal-log.h b/cores/esp32/esp32-hal-log.h index 015cd67aa21..1b7ea77fce8 100644 --- a/cores/esp32/esp32-hal-log.h +++ b/cores/esp32/esp32-hal-log.h @@ -107,9 +107,9 @@ int log_printf(const char *fmt, ...); #define log_e(format, ...) #endif -#ifdef CONFIG_ARDUHAL_ESP_LOG #include "esp_log.h" +#ifdef CONFIG_ARDUHAL_ESP_LOG #undef ESP_LOGE #undef ESP_LOGW #undef ESP_LOGI