Skip to content

Commit ca3faa6

Browse files
committed
Merge branch 'bugfix/btdm_fix_example_log_missing_bug' into 'master'
component/bt: Fix BLE printf missing problem See merge request idf/esp-idf!1912
2 parents 363c096 + 4ee6f73 commit ca3faa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/log/include/esp_log.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, .
186186
*/
187187
#define ESP_LOG_BUFFER_HEX(tag, buffer, buff_len) \
188188
do { \
189-
if (LOG_LOCAL_LEVEL > ESP_LOG_INFO) { \
189+
if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO) { \
190190
ESP_LOG_BUFFER_HEX_LEVEL( tag, buffer, buff_len, ESP_LOG_INFO ); \
191191
}\
192192
} while(0)
@@ -205,7 +205,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, .
205205
*/
206206
#define ESP_LOG_BUFFER_CHAR(tag, buffer, buff_len) \
207207
do { \
208-
if (LOG_LOCAL_LEVEL > ESP_LOG_INFO) { \
208+
if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO) { \
209209
ESP_LOG_BUFFER_CHAR_LEVEL( tag, buffer, buff_len, ESP_LOG_INFO ); \
210210
}\
211211
} while(0)

0 commit comments

Comments
 (0)