From 32bb32b598937871ab738e6ce7f193d53e4923bb Mon Sep 17 00:00:00 2001 From: Omar Chebib Date: Thu, 25 Sep 2025 10:21:51 +0800 Subject: [PATCH] fix(ulp): fix warning in lp core I2C driver --- components/ulp/lp_core/lp_core/lp_core_i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/ulp/lp_core/lp_core/lp_core_i2c.c b/components/ulp/lp_core/lp_core/lp_core_i2c.c index dbfdc9d6df..a2d414f11c 100644 --- a/components/ulp/lp_core/lp_core/lp_core_i2c.c +++ b/components/ulp/lp_core/lp_core/lp_core_i2c.c @@ -5,6 +5,7 @@ */ #include "sdkconfig.h" +#include /* For MIN macro */ #include "soc/soc_caps.h" #include "ulp_lp_core_i2c.h" #include "ulp_lp_core_utils.h" @@ -20,8 +21,6 @@ #define LP_I2C_ACK I2C_MASTER_ACK #define LP_I2C_NACK I2C_MASTER_NACK -#define MIN(x, y) (((x) < (y)) ? (x) : (y)) - /* I2C LL context */ i2c_dev_t *dev = I2C_LL_GET_HW(LP_I2C_NUM_0);