1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-23 10:50:54 +00:00

Fixes to the startup sequence to fix file system errors.

This commit is contained in:
MartinMueller2003 2024-03-26 16:04:55 -04:00
parent f2146309fe
commit 7dc51d1274

View File

@ -287,18 +287,18 @@ void setup(void)
*/
ESPUI.sliderContinuous = true;
#ifdef TEST_FILEDISPLAY
ESPUI.prepareFileSystem();
// create a text file
ESPUI.writeFile("/DisplayFile.txt", "Test Line\n");
ESPUI.beginLITTLEFS("ESPUI Control");
// these files are used by browsers to auto config a connection.
ESPUI.writeFile("/wpad.dat", " ");
ESPUI.writeFile("/connecttest.txt", " ");
#endif // def TEST_FILEDISPLAY
ESPUI.beginLITTLEFS("ESPUI Control");
#ifdef TEST_FILEDISPLAY
// create a text file
ESPUI.writeFile("/DisplayFile.txt", "Test Line\n");
#endif // def TEST_FILEDISPLAY
}
void loop(void)