mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 12:07:52 +00:00
Merge branch 'contrib/github_pr_13856' into 'master'
fix(spi_master): spi_bus_free() fail but destruct common context (GitHub PR) Closes IDFGH-12895 See merge request espressif/esp-idf!31084
This commit is contained in:
@@ -922,6 +922,9 @@ esp_err_t spi_bus_free(spi_host_device_t host_id)
|
||||
|
||||
if (ctx->destroy_func) {
|
||||
err = ctx->destroy_func(ctx->destroy_arg);
|
||||
if (err != ESP_OK) {
|
||||
return err;
|
||||
}
|
||||
}
|
||||
spicommon_bus_free_io_cfg(&bus_attr->bus_cfg);
|
||||
|
||||
|
Reference in New Issue
Block a user