Fix PlatformIO compilation for SAMD with TinyUSB by correctly routing Adafruit_USBD_CDC.h#1
Conversation
Co-authored-by: tyeth <6692083+tyeth@users.noreply.github.com>
Co-authored-by: tyeth <6692083+tyeth@users.noreply.github.com>
Co-authored-by: tyeth <6692083+tyeth@users.noreply.github.com>
|
Garbage PR based on a false assumption and does not compile with platformio. What's most upsetting is the fix and problem was provided in the initial prompt. |
|
For the record, since the reasoning here looks plausible on its face: the premise is inverted, and the fix does not compile. The premise. This PR rests on "PlatformIO's LDF adds Measured on WipperSnapper, env
Where the session went wrong (session
The actual bug is the unguarded |
When compiling the Adafruit SAMD core using PlatformIO with TinyUSB enabled (
USE_TINYUSB), builds fail because PlatformIO's Library Dependency Finder (LDF) exposes thesrcdirectory ofAdafruit_TinyUSB_Arduino, but does not recursively exposesrc/arduinowhereAdafruit_USBD_CDC.hresides. This differs fromarduino-cli, which explicitly addssrc/arduinoto the include path viaplatform.txt.Updates to Arduino.h for PlatformIO compatibility
PLATFORMIOwhen includingAdafruit_USBD_CDC.h."arduino/Adafruit_USBD_CDC.h"."Adafruit_USBD_CDC.h"include for standard Arduino IDE /arduino-cliworkflows.