Fix compile isse when TinyUSB task is not enabled.

pull/8172/head
Venelin Efremov 2021-12-30 04:49:03 -08:00
rodzic 952b4d848f
commit 8e3ad708b2
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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