- add self updating function. You can start an update from onscreen menu
This commit is contained in:
Stephan Mühl
2023-03-23 22:11:46 +01:00
parent e590e22923
commit 396e1f1cf9
13 changed files with 214 additions and 22 deletions

View File

@@ -4,6 +4,7 @@
#include <Globals.h>
#include <ServerManager.h>
#include <DisplayManager.h>
#include <updater.h>
String menuText;
int menuSelection;
@@ -33,9 +34,10 @@ const char *menuItems[] = {
"COLOR",
"SWITCH",
"T-SPEED",
"APPTIME"};
"APPTIME",
"UPDATE"};
byte menuItemCount = 6;
byte menuItemCount = 7;
MenuState currentState = MainMenu;
@@ -248,6 +250,10 @@ void MenuManager_::selectButton()
{
currentState = AppTimeMenu;
}
else if (menuIndex == 6) // AppTIme
{
FirmwareVersionCheck();
}
}
else if (currentState == StationSelection)
{