Merge branch 'fix/i2c_redundant_local_level_v5.5' into 'release/v5.5'

fix(i2c): fix LOG_LOCAL_LEVEL redefinition error when CONFIG_I2C_ENABLE_DEBUG_LOG is enabled (v5.5)

See merge request espressif/esp-idf!45648
This commit is contained in:
Michael (XIAO Xufeng)
2026-02-06 18:22:05 +08:00

View File

@@ -12,12 +12,12 @@
#include "sdkconfig.h"
#include "esp_types.h"
#include "esp_attr.h"
#include "esp_check.h"
#if CONFIG_I2C_ENABLE_DEBUG_LOG
// The local log level must be defined before including esp_log.h
// Set the maximum log level for this source file
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
#endif
#include "esp_check.h"
#include "esp_log.h"
#include "esp_intr_alloc.h"
#include "freertos/FreeRTOS.h"