summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-17 16:24:43 +0700
committerhathach <[email protected]>2022-03-17 16:24:43 +0700
commit6df420f7f31b4fbf9b95987211e9ed9fef58ac00 (patch)
tree5cff0e3e550e1c6db72311f1941fa617c78beb27 /examples/host/bare_api/src
parent68bfd048a54d1ff2def4cb1ee5285eacdb55f143 (diff)
move result into transfer struct
Diffstat (limited to 'examples/host/bare_api/src')
-rw-r--r--examples/host/bare_api/src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c
index 9e6209991..8da7f6a0c 100644
--- a/examples/host/bare_api/src/main.c
+++ b/examples/host/bare_api/src/main.c
@@ -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;