i2c: fix typo in SOC_I2C_SUPPORT_SALVE

Merges: https://github.com/espressif/esp-idf/pull/8513
This commit is contained in:
Kevin Guilloy 2022-03-06 22:54:59 +01:00 committed by laokaiyao
parent 5faf116d26
commit 1fce1616c4

View File

@ -390,7 +390,7 @@ err:
if (p_i2c_obj[i2c_num]->cmd_mux) { if (p_i2c_obj[i2c_num]->cmd_mux) {
vSemaphoreDelete(p_i2c_obj[i2c_num]->cmd_mux); vSemaphoreDelete(p_i2c_obj[i2c_num]->cmd_mux);
} }
#if SOC_I2C_SUPPORT_SALVE #if SOC_I2C_SUPPORT_SLAVE
if (p_i2c_obj[i2c_num]->slv_rx_mux) { if (p_i2c_obj[i2c_num]->slv_rx_mux) {
vSemaphoreDelete(p_i2c_obj[i2c_num]->slv_rx_mux); vSemaphoreDelete(p_i2c_obj[i2c_num]->slv_rx_mux);
} }