Modified SD library files to eliminate conflict with SPIFFS
Posted: Wed Oct 05, 2016 12:14 am
As mentioned here,
So that every single person who wants to use a SD card and SPIFFS doesn't have to go through the trouble of figuring out exactly what that means and finding all of the occurrences, I have attached files from the SD library that I modified. Locations that have been modified have a "// DAE" comment. Note that it is a bit confusing that the files have both "SDFile" (what I changed) and "SdFile" (an original name in the library...not changed by me).
And, of course, when you create an instance of a file, you need to use
If you wish to use both SD and SPIFFS at the same time, you need to get rid of the clashing names by editing the SD library files and changing all occurrences of "File" to "SDFile".
So that every single person who wants to use a SD card and SPIFFS doesn't have to go through the trouble of figuring out exactly what that means and finding all of the occurrences, I have attached files from the SD library that I modified. Locations that have been modified have a "// DAE" comment. Note that it is a bit confusing that the files have both "SDFile" (what I changed) and "SdFile" (an original name in the library...not changed by me).
And, of course, when you create an instance of a file, you need to use
Code: Select all
not SDFile myFile;
Code: Select all
.File myFile;