1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-09-19 17:51:49 +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; ESPUI.sliderContinuous = true;
#ifdef TEST_FILEDISPLAY
ESPUI.prepareFileSystem(); ESPUI.prepareFileSystem();
// create a text file ESPUI.beginLITTLEFS("ESPUI Control");
ESPUI.writeFile("/DisplayFile.txt", "Test Line\n");
// these files are used by browsers to auto config a connection. // these files are used by browsers to auto config a connection.
ESPUI.writeFile("/wpad.dat", " "); ESPUI.writeFile("/wpad.dat", " ");
ESPUI.writeFile("/connecttest.txt", " "); 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) void loop(void)