Skip to content

Commit 8c1866f

Browse files
authored
Enable CFG_TUD_ENABLED based on CONFIG_TINYUSB_ENABLED
1 parent d9cae37 commit 8c1866f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/arduino_tinyusb/include/tusb_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ extern "C" {
7676
# define CONFIG_TINYUSB_NCM_ENABLED 0
7777
#endif
7878

79-
#ifndef CFG_TUD_ENABLED
80-
# define CFG_TUD_ENABLED 0
79+
#if CONFIG_TINYUSB_ENABLED
80+
# define CFG_TUD_ENABLED 1
8181
#endif
8282

8383
/* */

0 commit comments

Comments
 (0)