fix(i2c_master): Enhance i2c delete device and bus logic,

Closes https://github.com/espressif/esp-idf/issues/15171
This commit is contained in:
C.S.M
2025-01-21 15:55:32 +08:00
parent 3dd1ad9fdd
commit 847780da3e
4 changed files with 14 additions and 2 deletions

View File

@@ -141,8 +141,9 @@ TEST_CASE("I2C device add & remove check", "[i2c]")
i2c_master_bus_rm_device(dev_1);
i2c_master_bus_rm_device(dev_2);
i2c_master_bus_rm_device(dev_3);
TEST_ESP_ERR(ESP_ERR_INVALID_STATE, i2c_del_master_bus(bus_handle));
i2c_master_bus_rm_device(dev_3);
TEST_ESP_OK(i2c_del_master_bus(bus_handle));
}