You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please see espressif/esp-idf#3427 for code samples, platform details and discussion. To summarize:
The FS class is not designed to be subclassed insofar as none of its methods are virtual. Re-implementing those methods in SPIFFSFS does not override them, it hides them, so instances of SPIFFSFS can not be passed as references or pointers to the FS class. If they are, the FS methods will be called instead and will not work reliably for a SPIFFS filing system (the existing unit tests are all positive - they test that things work when the files are as they are supposed to be, they don't test negative situations such as files not actually existing).
Instead, an instance of a SPIFFSFS class (such as the instance called SPIFFS) should inject a SPIFFS-specific implementation class into the superclass.
The text was updated successfully, but these errors were encountered:
judge2005
added a commit
to judge2005/arduino-esp32
that referenced
this issue
May 9, 2019
Please see espressif/esp-idf#3427 for code samples, platform details and discussion. To summarize:
The FS class is not designed to be subclassed insofar as none of its methods are virtual. Re-implementing those methods in SPIFFSFS does not override them, it hides them, so instances of SPIFFSFS can not be passed as references or pointers to the FS class. If they are, the FS methods will be called instead and will not work reliably for a SPIFFS filing system (the existing unit tests are all positive - they test that things work when the files are as they are supposed to be, they don't test negative situations such as files not actually existing).
Instead, an instance of a SPIFFSFS class (such as the instance called SPIFFS) should inject a SPIFFS-specific implementation class into the superclass.
The text was updated successfully, but these errors were encountered: