ArduinoCore-samd icon indicating copy to clipboard operation
ArduinoCore-samd copied to clipboard

Not defining USBCON broke since 1.8.14

Open MSmeets94 opened this issue 1 year ago • 0 comments

We have a PlatformIO project which has a custom board without USB. For this we don't have USBCON defined which worked fine in v1.8.13

Since PR #713 this broke because USBAPI.h now uses LineInfo which is not defined.

The definition for LineInfo is in CDC.h , surrounded by an ifdef CDC_ENABLED (which is false, since USBCON is not defined), however since CDC.cpp does always include USBAPI.h this problem arises;

I originally created this issue in https://github.com/platformio/platform-atmelsam/issues/234 , but this indeed not an issue in PlatformIO but ArduinoCore

MSmeets94 avatar Oct 30 '24 13:10 MSmeets94