From 3aeeb7585d65134b92c812e73c1f27a7932384b0 Mon Sep 17 00:00:00 2001 From: "C.S.M" Date: Mon, 17 Mar 2025 12:37:08 +0800 Subject: [PATCH] fix(i2c): Fix the array size of static operation, Closes https://github.com/espressif/esp-idf/issues/15583 --- components/esp_driver_i2c/i2c_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_driver_i2c/i2c_private.h b/components/esp_driver_i2c/i2c_private.h index a78dfdd067..4eaad6be84 100644 --- a/components/esp_driver_i2c/i2c_private.h +++ b/components/esp_driver_i2c/i2c_private.h @@ -57,7 +57,7 @@ extern "C" { #define I2C_ALLOW_INTR_PRIORITY_MASK ESP_INTR_FLAG_LOWMED #define I2C_PM_LOCK_NAME_LEN_MAX 16 -#define I2C_STATIC_OPERATION_ARRAY_MAX 6 +#define I2C_STATIC_OPERATION_ARRAY_MAX SOC_I2C_CMD_REG_NUM #define ACK_VAL 0 #define NACK_VAL 1