move result into transfer struct

This commit is contained in:
hathach
2022-03-17 16:24:43 +07:00
parent 68bfd048a5
commit 6df420f7f3
6 changed files with 49 additions and 48 deletions

View File

@@ -115,11 +115,9 @@ static void utf16_to_utf8(uint16_t *temp_buf, size_t buf_len) {
((uint8_t*) temp_buf)[utf8_len] = '\0';
}
bool print_device_descriptor(uint8_t daddr, tuh_control_xfer_t const * xfer, xfer_result_t result)
bool print_device_descriptor(uint8_t daddr, tuh_control_xfer_t const * xfer)
{
(void) xfer;
if ( XFER_RESULT_SUCCESS != result )
if ( XFER_RESULT_SUCCESS != xfer->result )
{
printf("Failed to get device descriptor\r\n");
return false;