From c2e5957f35b0441e7c954e247437456fabe3800f Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 28 Feb 2022 15:50:07 +0100 Subject: [PATCH] Update esp32-hal-log.h (#6358) #ifdef added, to avoid compiler redefinition warnings for LOG_LOCAL_LEVEL if defined by application, and we USE_ESP_IDF_LOG --- cores/esp32/esp32-hal-log.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/esp32/esp32-hal-log.h b/cores/esp32/esp32-hal-log.h index e3ff5e770..43d84a40b 100644 --- a/cores/esp32/esp32-hal-log.h +++ b/cores/esp32/esp32-hal-log.h @@ -38,9 +38,11 @@ extern "C" #else #define ARDUHAL_LOG_LEVEL CORE_DEBUG_LEVEL #ifdef USE_ESP_IDF_LOG +#ifndef LOG_LOCAL_LEVEL #define LOG_LOCAL_LEVEL CORE_DEBUG_LEVEL #endif #endif +#endif #ifndef CONFIG_ARDUHAL_LOG_COLORS #define CONFIG_ARDUHAL_LOG_COLORS 0 -- GitLab