diff options
| author | Ha Thach <[email protected]> | 2020-04-11 15:18:41 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-11 15:18:41 +0700 |
| commit | 13a3081d308828ae6e4b9a40bb8ac7bf5b0e424c (patch) | |
| tree | 94aa331fcee14556dc8c8b19a331852d034eda44 /examples | |
| parent | 07809d03a728abff4c77f04fdf293eb29a0c109c (diff) | |
| parent | 1751064f705f92396863074487d1aaf83bba61d6 (diff) | |
Merge pull request #333 from hathach/fix-esp32s2-setup-packet
fix incorrect setup packet
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c index f093d8ea0..a847f4915 100644 --- a/examples/device/cdc_msc_freertos/src/main.c +++ b/examples/device/cdc_msc_freertos/src/main.c @@ -56,7 +56,13 @@ StaticTimer_t blinky_tmdef; TimerHandle_t blinky_tm; // static task for usbd -#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) +// Increase stack size when debug log is enabled +#if CFG_TUSB_DEBUG + #define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE) +#else + #define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) +#endif + StackType_t usb_device_stack[USBD_STACK_SIZE]; StaticTask_t usb_device_taskdef; @@ -194,7 +200,7 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) if ( dtr && rts ) { // print initial message when connected - tud_cdc_write_str("\r\nTinyUSB CDC MSC HID device with FreeRTOS example\r\n"); + tud_cdc_write_str("\r\nTinyUSB CDC MSC device with FreeRTOS example\r\n"); } } |
