Bill Greiman
Bill Greiman
> Does it mean it would use all 3 PIOs or 3rd PIO? It uses one PIO. It looks for a PIO with almost all memory available. Then it claims...
I need a simple example for this problem. Which board and which version of the ESP32 board package. My test examples compile with this version: 
You may be using the copy constructor for FsFile. It is explicitly deleted [here](https://github.com/greiman/SdFat/blob/052d38e2c6ed64d862d8867b32e37f36b8c065ec/src/FsLib/FsFile.h#L80). It is deleted since filesystem corruption can occur if there are multiple instance of the file...
Functions like this with call by value cause problems. `void printDirectory(File dir, int numTabs)` The reason is that a copy of the first argument is made on the stack before...
I made the change since even a very skilled C++ programmer created a bug using call by value and suggested I protect from duplicate instances of the file object. I...
In the latest version of SdFat the copy constructor for File classes is private to prevent multiple copies of a file object. A function with this signature will create copy...
> By changing only the definition of audiozero, the file is played, but only the first time. > The following times it does not play. > As if close and...
> How do I get the file to play again? See the above link to the place to change in SdFatConfig.h.
at line 68 of SdFatConfig.h change ``` #define FILE_COPY_CONSTRUCTOR_SELECT FILE_COPY_CONSTRUCTOR_PRIVATE ``` to ``` #define FILE_COPY_CONSTRUCTOR_SELECT FILE_COPY_CONSTRUCTOR_PUBLIC ```
> Does this fix my issue too? It doesn't fix the fundamental issue of multiple copies of a file object but it will allow call by value.