Merge branch 'contrib/github_pr_17926_v5.5' into 'release/v5.5'
fix:Report the full buffer length to the UAC stack by setting bytes_r… (GitHub PR) (v5.5) See merge request espressif/esp-idf!45130
This commit is contained in:
@@ -236,6 +236,11 @@ static esp_err_t usb_uac_device_input_cb(uint8_t *buf, size_t len, size_t *bytes
|
||||
return ESP_FAIL;
|
||||
}
|
||||
|
||||
/* Report full-length data for UAC */
|
||||
if (bytes_read) {
|
||||
*bytes_read = len;
|
||||
}
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user