michalmonday / CSV-Parser-for-Arduino

It turns CSV string into an associative array (like dict in python)
MIT License
58 stars 12 forks source link

Platformio compilation problem due to SD.h import #5

Open michalmonday opened 4 years ago

SherifMEldeeb commented 3 years ago

just add it to your project dependencies as the way the compiler work it doesn't include libraries dependencies automatically unless the library it self handled it which is not the case.

KaloNK commented 2 years ago

Suggestion - use the file object provided from the caller and just remove open, the rest of the code is unchanged: CSV_Parser::readFile(File csv_file) and you call it as: cv.readFile(SD.open(f_name)); csv_file is still closed from the call, so it should be OK