Skip to content

Commit a7aa530

Browse files
committed
Fixed compilation when CDC_ONLY defined
1 parent 7d11a2b commit a7aa530

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/USB/USBCore.h

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef __USBCORE_H__
2020
#define __USBCORE_H__
2121

22+
#include "USBDesc.h"
23+
2224
// Standard requests
2325
#define GET_STATUS 0
2426
#define CLEAR_FEATURE 1
@@ -226,7 +228,9 @@ typedef struct
226228
typedef struct
227229
{
228230
// IAD
231+
#if !defined(CDC_ONLY)
229232
IADDescriptor iad; // Only needed on compound device
233+
#endif
230234
// Control
231235
InterfaceDescriptor cif;
232236
CDCCSInterfaceDescriptor header;

0 commit comments

Comments
 (0)