From 26c7396892e104ef50430e083f94559f7a9603ac Mon Sep 17 00:00:00 2001 From: hiruna Date: Sat, 27 May 2023 13:24:29 +1000 Subject: [PATCH] fix i2c_manager port conf check --- lvgl_i2c/i2c_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvgl_i2c/i2c_manager.c b/lvgl_i2c/i2c_manager.c index e7f8f01..2816486 100644 --- a/lvgl_i2c/i2c_manager.c +++ b/lvgl_i2c/i2c_manager.c @@ -58,7 +58,7 @@ static SemaphoreHandle_t* I2C_FN(_mutex) = &I2C_FN(_local_mutex)[0]; static const uint8_t ACK_CHECK_EN = 1; -#if defined (I2C_NUM_0) && defined (CONFIG_I2C_MANAGER_0_ENABLED) +#if defined (CONFIG_I2C_MANAGER_0_ENABLED) #define I2C_ZERO I2C_NUM_0 #if defined (CONFIG_I2C_MANAGER_0_PULLUPS) #define I2C_MANAGER_0_PULLUPS true @@ -71,7 +71,7 @@ static const uint8_t ACK_CHECK_EN = 1; #endif -#if defined (I2C_NUM_1) && defined (CONFIG_I2C_MANAGER_1_ENABLED) +#if defined (CONFIG_I2C_MANAGER_1_ENABLED) #define I2C_ONE I2C_NUM_1 #if defined (CONFIG_I2C_MANAGER_1_PULLUPS) #define I2C_MANAGER_1_PULLUPS true