From 8e3ad708b2b8f1f7004fe0e23926672f6d5d118c Mon Sep 17 00:00:00 2001 From: Venelin Efremov Date: Thu, 30 Dec 2021 04:49:03 -0800 Subject: [PATCH] Fix compile isse when TinyUSB task is not enabled. --- components/tinyusb/additions/src/tusb_tasks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/tinyusb/additions/src/tusb_tasks.c b/components/tinyusb/additions/src/tusb_tasks.c index 731247380a..08251199df 100644 --- a/components/tinyusb/additions/src/tusb_tasks.c +++ b/components/tinyusb/additions/src/tusb_tasks.c @@ -20,6 +20,8 @@ #include "tinyusb.h" #include "tusb_tasks.h" +#if !CONFIG_TINYUSB_NO_DEFAULT_TASK + const static char *TAG = "tusb_tsk"; static TaskHandle_t s_tusb_tskh; @@ -52,3 +54,5 @@ esp_err_t tusb_stop_task(void) s_tusb_tskh = NULL; return ESP_OK; } + +#endif // !CONFIG_TINYUSB_NO_DEFAULT_TASK \ No newline at end of file