Skip to content

Commit 32bb32b

Browse files
committed
fix(ulp): fix warning in lp core I2C driver
1 parent 324446d commit 32bb32b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/ulp/lp_core/lp_core/lp_core_i2c.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include "sdkconfig.h"
8+
#include <sys/param.h> /* For MIN macro */
89
#include "soc/soc_caps.h"
910
#include "ulp_lp_core_i2c.h"
1011
#include "ulp_lp_core_utils.h"
@@ -20,8 +21,6 @@
2021
#define LP_I2C_ACK I2C_MASTER_ACK
2122
#define LP_I2C_NACK I2C_MASTER_NACK
2223

23-
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
24-
2524
/* I2C LL context */
2625

2726
i2c_dev_t *dev = I2C_LL_GET_HW(LP_I2C_NUM_0);

0 commit comments

Comments
 (0)