diff --git a/components/esp_driver_i2c/test_apps/i2c_test_apps/main/test_i2c_multi.c b/components/esp_driver_i2c/test_apps/i2c_test_apps/main/test_i2c_multi.c index 72eb3228c1..e167ce62d6 100644 --- a/components/esp_driver_i2c/test_apps/i2c_test_apps/main/test_i2c_multi.c +++ b/components/esp_driver_i2c/test_apps/i2c_test_apps/main/test_i2c_multi.c @@ -140,7 +140,7 @@ TEST_CASE_MULTIPLE_DEVICES("I2C master write slave test", "[i2c][test_env=generi static void i2c_master_write_test_large_write_small_read(void) { - uint8_t data_wr[DATA_LENGTH] = { 0 }; + uint8_t data_wr[35] = { 0 }; // IDFCI-2151 Temporarily make up this test. int i; i2c_master_bus_config_t i2c_mst_config = { @@ -166,12 +166,12 @@ static void i2c_master_write_test_large_write_small_read(void) unity_wait_for_signal("i2c slave init finish"); unity_send_signal("master write"); - for (i = 0; i < DATA_LENGTH; i++) { + for (i = 0; i < 35; i++) { data_wr[i] = i; } disp_buf(data_wr, i); - TEST_ESP_OK(i2c_master_transmit(dev_handle, data_wr, DATA_LENGTH, -1)); + TEST_ESP_OK(i2c_master_transmit(dev_handle, data_wr, 35, -1)); unity_wait_for_signal("ready to delete"); TEST_ESP_OK(i2c_master_bus_rm_device(dev_handle));