Init display before copying spiffs + shorter startscreen

This commit is contained in:
Stefan Kremser
2018-03-25 17:38:11 +02:00
parent f700cbab5d
commit 19dcf097b7
2 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ extern String replaceUtf8(String str, String r);
#define DRAW_INTERVAL 100 // 100ms = 10 FPS
#define CHARS_PER_LINE 17
#define SCROLL_SPEED 5
#define SCREEN_INTRO_TIME 3000
#define SCREEN_INTRO_TIME 2500
// ====================== //
struct Menu;

View File

@@ -93,15 +93,15 @@ void setup() {
// load settings
settings.load();
// copy web files to SPIFFS
copyWebFiles(false);
// start display
if (settings.getDisplayInterface()){
displayUI.setup();
displayUI.mode = SCREEN_MODE_INTRO;
}
// copy web files to SPIFFS
copyWebFiles(false);
// load everything else
names.load();
ssids.load();