Closed brianmichalk1 closed 1 year ago
Hi, i see what you mean. The library is working properly with arduino IDE, but is having problems with platformio. I dont have the solution yet.
I also have the same phenomenon. My solution was to include "SD.h" in the main. Unfortunately I don't know exactly why this fixed the problem.
in main.cpp
The simplest solution is probably to add the option to platformio.ini:
lib_ldf_mode = deep+
PlatformIO compiles sdcard.cpp by default even if you don't need it. Unfortunately I don't know the exact reason.
A solution to the problem is probably not to use all modules by default. Apparently you only want to use CDC and not MSC.
All I am attempting to do with this library is change the manufacturer string. I haven't found any other examples for Arduino platform other than for this library.
My includes:
I'm trying to compile without actually calling any methods, and it's failing on pulling in FS.h: