diff options
| author | hathach <[email protected]> | 2022-03-17 16:56:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-17 16:56:56 +0700 |
| commit | 1ee699d49d6da7ce8b92cde1636e34ed90ff6396 (patch) | |
| tree | 0d773aee529f16863c38e239ec0999a71c07debc /examples/host/bare_api/src | |
| parent | 66942b814b6e24ecfe7db567b29f2e1d114071c1 (diff) | |
update example
Diffstat (limited to 'examples/host/bare_api/src')
| -rw-r--r-- | examples/host/bare_api/src/main.c | 6 |
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 8da7f6a0c..3f0b9ef22 100644 --- a/examples/host/bare_api/src/main.c +++ b/examples/host/bare_api/src/main.c @@ -115,12 +115,12 @@ 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) +void print_device_descriptor(uint8_t daddr, tuh_control_xfer_t* xfer) { if ( XFER_RESULT_SUCCESS != xfer->result ) { printf("Failed to get device descriptor\r\n"); - return false; + return; } printf("Device %u: ID %04x:%04x\r\n", daddr, desc_device.idVendor, desc_device.idProduct); @@ -164,8 +164,6 @@ bool print_device_descriptor(uint8_t daddr, tuh_control_xfer_t const * xfer) printf("\r\n"); printf(" bNumConfigurations %u\r\n" , desc_device.bNumConfigurations); - - return true; } // Invoked when device is mounted (configured) |
