diff options
| author | hathach <[email protected]> | 2025-02-17 17:06:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-02-17 17:06:51 +0700 |
| commit | 18d566b94c8f17d9df04914979997d589b905290 (patch) | |
| tree | 73dbf33de80936c89f59a65371dcf278f865e0d6 /src/host/usbh.c | |
| parent | 9d2fd6c4acd334a25592487ba7d10b46ccecfedf (diff) | |
improve hub: retry if hub interrupt endpoint failed
bump up pio-usb to latest
Diffstat (limited to 'src/host/usbh.c')
| -rw-r--r-- | src/host/usbh.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index a2994cde7..5f4f17167 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -467,13 +467,11 @@ bool tuh_task_event_ready(void) { * This should be called periodically within the mainloop or rtos thread. * @code - int main(void) - { + int main(void) { application_init(); tusb_init(0, TUSB_ROLE_HOST); - while(1) // the mainloop - { + while(1) { // the mainloop application_code(); tuh_task(); // tinyusb host task } @@ -1657,7 +1655,7 @@ static bool _parse_configuration_descriptor(uint8_t dev_addr, tusb_desc_configur if ( 0 == tu_desc_len(p_desc) ) { // A zero length descriptor indicates that the device is off spec (e.g. wrong wTotalLength). // Parsed interfaces should still be usable - TU_LOG_USBH("Encountered a zero-length descriptor after %u bytes\r\n", (uint32_t)p_desc - (uint32_t)desc_cfg); + TU_LOG_USBH("Encountered a zero-length descriptor after %" PRIu32 "bytes\r\n", (uint32_t)p_desc - (uint32_t)desc_cfg); break; } |
