diff options
| author | hathach <[email protected]> | 2024-04-26 00:10:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-04-26 00:10:57 +0700 |
| commit | 223ce56625474764dc00229c44731858abcf4f29 (patch) | |
| tree | 902d084185b85728ec7bdb48bb6726d221a2bdb2 /examples | |
| parent | 03ccc8d8dfe21fc158fc5eb8a4f3f90f425f8a3b (diff) | |
- add esp32 c3, c6 mcu option
- skip breakpoint for espressif riscv
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/cdc_msc_hid_freertos/src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid_freertos/src/main.c b/examples/host/cdc_msc_hid_freertos/src/main.c index a6cb4d460..fa799aede 100644 --- a/examples/host/cdc_msc_hid_freertos/src/main.c +++ b/examples/host/cdc_msc_hid_freertos/src/main.c @@ -126,7 +126,10 @@ static void usb_host_task(void *param) { (void) param; // init host stack on configured roothub port - tuh_init(BOARD_TUH_RHPORT); + if (!tuh_init(BOARD_TUH_RHPORT)) { + printf("Failed to init USB Host Stack\r\n"); + vTaskSuspend(NULL); + } if (board_init_after_tusb) { board_init_after_tusb(); |
