mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
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
@ -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 New Issue
Block a user