Skip to content

Commit 23d61ea

Browse files
committed
cleanup
1 parent a0cb4c0 commit 23d61ea

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

genericInstaller/config.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,16 @@
3030
#define CONFIG_LED_PIN 4
3131
#endif
3232

33+
enum Screen {
34+
SCREEN_HOME,
35+
SCREEN_QR,
36+
SCREEN_SETTINGS,
37+
SCREEN_INFO,
38+
};
39+
40+
enum SettingsMenu {
41+
SETTING_ENABLE_BLINK,
42+
SETTING_BOOT_LOCK,
43+
};
44+
3345
#endif

genericInstaller/genericInstaller.ino

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,18 @@
11
#include "config.h"
22

3-
// globals
3+
// config
44
String config_wifi_ssid;
55
String config_wifi_password;
66
int config_led_pin;
77
int config_boot_lock;
88

9+
// app state
910
int wifi_connected = false;
1011
int enable_blink = true;
1112

12-
// enum for menu items
13-
enum Screen {
14-
SCREEN_HOME,
15-
SCREEN_QR,
16-
SCREEN_SETTINGS,
17-
SCREEN_INFO,
18-
};
19-
13+
// ui state
2014
int currentMenuItem = SCREEN_QR;
2115
int currentScreen = SCREEN_HOME;
22-
23-
// settings menu
24-
enum SettingsMenu {
25-
SETTING_ENABLE_BLINK,
26-
SETTING_BOOT_LOCK,
27-
};
2816
int currentSetting = SETTING_ENABLE_BLINK;
2917

3018

0 commit comments

Comments
 (0)