From cf93d473fb992b8b31361b072c0a6a972b75da5d Mon Sep 17 00:00:00 2001 From: bobobo1618 Date: Wed, 14 Oct 2020 14:26:51 +0200 Subject: [PATCH] Make esp32-hal-tinyusb.h conditional on tinyusb (#4155) --- cores/esp32/esp32-hal-tinyusb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/esp32/esp32-hal-tinyusb.h b/cores/esp32/esp32-hal-tinyusb.h index 3417bb05..adf6780b 100644 --- a/cores/esp32/esp32-hal-tinyusb.h +++ b/cores/esp32/esp32-hal-tinyusb.h @@ -16,6 +16,7 @@ #include "esp32-hal.h" #if CONFIG_IDF_TARGET_ESP32S2 +#if CONFIG_USB_ENABLED #ifdef __cplusplus extern "C" { @@ -98,4 +99,5 @@ uint8_t tinyusb_get_free_out_endpoint(void); } #endif +#endif /* CONFIG_USB_ENABLED */ #endif /* CONFIG_IDF_TARGET_ESP32S2 */