mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-23 16:00:54 +00:00
Fixes to the startup sequence to fix file system errors.
This commit is contained in:
parent
f2146309fe
commit
7dc51d1274
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user