Skip to content

Commit cfe6da8

Browse files
committed
fix build with host native
1 parent 7f7ac74 commit cfe6da8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/arduino/Adafruit_USBD_Device.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include "esp32-hal-tinyusb.h"
3434
#endif
3535

36+
#if CFG_TUD_ENABLED
37+
3638
class Adafruit_USBD_Device {
3739
private:
3840
enum { STRING_DESCRIPTOR_MAX = 12 };
@@ -146,4 +148,5 @@ extern Adafruit_USBD_Device TinyUSBDevice;
146148
#define USBDevice TinyUSBDevice
147149
#endif
148150

149-
#endif /* ADAFRUIT_USBD_DEVICE_H_ */
151+
#endif /* CFG_TUD_ENABLED */
152+
#endif /* ADAFRUIT_USBD_DEVICE_H_ */

0 commit comments

Comments
 (0)