Skip to content

Commit 34b69e8

Browse files
committed
Merge branch 'fix/i2c_operation_array_max' into 'master'
fix(i2c): Fix the array size of static operation Closes IDFGH-14862 See merge request espressif/esp-idf!37784
2 parents d3fd64d + 757f776 commit 34b69e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_driver_i2c/i2c_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extern "C" {
6767
#define I2C_ALLOW_INTR_PRIORITY_MASK ESP_INTR_FLAG_LOWMED
6868

6969
#define I2C_PM_LOCK_NAME_LEN_MAX 16
70-
#define I2C_STATIC_OPERATION_ARRAY_MAX 6
70+
#define I2C_STATIC_OPERATION_ARRAY_MAX SOC_I2C_CMD_REG_NUM
7171

7272
#define I2C_TRANS_READ_COMMAND(ack_value) {.ack_val = (ack_value), .op_code = I2C_LL_CMD_READ}
7373
#define I2C_TRANS_WRITE_COMMAND(ack_check) {.ack_en = (ack_check), .op_code = I2C_LL_CMD_WRITE}

0 commit comments

Comments
 (0)