Skip to content

Commit c2e5957

Browse files
authoredFeb 28, 2022
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
1 parent eae67a9 commit c2e5957

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎cores/esp32/esp32-hal-log.h

+2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ extern "C"
3838
#else
3939
#define ARDUHAL_LOG_LEVEL CORE_DEBUG_LEVEL
4040
#ifdef USE_ESP_IDF_LOG
41+
#ifndef LOG_LOCAL_LEVEL
4142
#define LOG_LOCAL_LEVEL CORE_DEBUG_LEVEL
4243
#endif
4344
#endif
45+
#endif
4446

4547
#ifndef CONFIG_ARDUHAL_LOG_COLORS
4648
#define CONFIG_ARDUHAL_LOG_COLORS 0

0 commit comments

Comments
 (0)