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:
parent
3dbafb9a13
commit
c8b697a114
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue