mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-23 15:10:06 +01:00
Init display before copying spiffs + shorter startscreen
This commit is contained in:
@@ -43,7 +43,7 @@ extern String replaceUtf8(String str, String r);
|
|||||||
#define DRAW_INTERVAL 100 // 100ms = 10 FPS
|
#define DRAW_INTERVAL 100 // 100ms = 10 FPS
|
||||||
#define CHARS_PER_LINE 17
|
#define CHARS_PER_LINE 17
|
||||||
#define SCROLL_SPEED 5
|
#define SCROLL_SPEED 5
|
||||||
#define SCREEN_INTRO_TIME 3000
|
#define SCREEN_INTRO_TIME 2500
|
||||||
// ====================== //
|
// ====================== //
|
||||||
|
|
||||||
struct Menu;
|
struct Menu;
|
||||||
|
|||||||
@@ -93,15 +93,15 @@ void setup() {
|
|||||||
// load settings
|
// load settings
|
||||||
settings.load();
|
settings.load();
|
||||||
|
|
||||||
// copy web files to SPIFFS
|
|
||||||
copyWebFiles(false);
|
|
||||||
|
|
||||||
// start display
|
// start display
|
||||||
if (settings.getDisplayInterface()){
|
if (settings.getDisplayInterface()){
|
||||||
displayUI.setup();
|
displayUI.setup();
|
||||||
displayUI.mode = SCREEN_MODE_INTRO;
|
displayUI.mode = SCREEN_MODE_INTRO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copy web files to SPIFFS
|
||||||
|
copyWebFiles(false);
|
||||||
|
|
||||||
// load everything else
|
// load everything else
|
||||||
names.load();
|
names.load();
|
||||||
ssids.load();
|
ssids.load();
|
||||||
|
|||||||
Reference in New Issue
Block a user