Skip to content

Commit 18bcded

Browse files
committed
Fix compilation if USBCON is not defined
1 parent b6ccd4f commit 18bcded

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/USB/USBDesc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef __USBDESC_H__
2020
#define __USBDESC_H__
2121

22+
#ifdef USBCON
23+
2224
// CDC or HID can be enabled together.
2325
#ifndef CDC_DISABLED
2426
#define CDC_ENABLED
@@ -35,4 +37,6 @@
3537
#define IPRODUCT 2
3638
#define ISERIAL 3
3739

40+
#endif /* USBCON */
41+
3842
#endif /* __USBDESC_H__ */

0 commit comments

Comments
 (0)