Fix ignored return value.

sdio_ringbuf_send ignores the return value of the callback.

Merges https://github.com/espressif/esp-idf/pull/6768
This commit is contained in:
Dániel Buga 2021-03-23 16:09:53 +01:00 committed by Ivan Grokhotkov
parent 3dbafb9a13
commit c8b697a114

View File

@ -91,7 +91,7 @@ static esp_err_t sdio_ringbuf_send(sdio_ringbuf_t *buf, esp_err_t (*copy_callbac
uint8_t* get_ptr = sdio_ringbuf_offset_ptr(buf, RINGBUF_WRITE_PTR, SDIO_SLAVE_SEND_DESC_SIZE);
esp_err_t err = ESP_OK;
if (copy_callback) {
(*copy_callback)(get_ptr, arg);
err = (*copy_callback)(get_ptr, arg);
}
if (err != ESP_OK) return err;