From 4ee6f73a2e940029c813f357c0d16113619b0071 Mon Sep 17 00:00:00 2001 From: island Date: Tue, 6 Feb 2018 14:33:07 +0800 Subject: [PATCH] component/bt: Fix BLE printf missing problem --- components/log/include/esp_log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/log/include/esp_log.h b/components/log/include/esp_log.h index 9e41d816a..c13a3f227 100644 --- a/components/log/include/esp_log.h +++ b/components/log/include/esp_log.h @@ -186,7 +186,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, . */ #define ESP_LOG_BUFFER_HEX(tag, buffer, buff_len) \ do { \ - if (LOG_LOCAL_LEVEL > ESP_LOG_INFO) { \ + if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO) { \ ESP_LOG_BUFFER_HEX_LEVEL( tag, buffer, buff_len, ESP_LOG_INFO ); \ }\ } while(0) @@ -205,7 +205,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, . */ #define ESP_LOG_BUFFER_CHAR(tag, buffer, buff_len) \ do { \ - if (LOG_LOCAL_LEVEL > ESP_LOG_INFO) { \ + if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO) { \ ESP_LOG_BUFFER_CHAR_LEVEL( tag, buffer, buff_len, ESP_LOG_INFO ); \ }\ } while(0)