aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authorDāvis Mošenkovs <davikovs@gmail.com>2025-09-03 21:50:13 +0300
committerGitHub <noreply@github.com>2025-09-03 20:50:13 +0200
commite03414ce6d96c3acdc6bb56be59c50fb6a1721fc (patch)
treefb36f10fc657c821d1bdb4fd4476a1f41f71d179 /src/displayapp/DisplayApp.cpp
parent9afc23cba9bcf938d8c49d6e15e7662ee8e6385d (diff)
Setting to disable DFU and FS access (#1891)
* Expose SystemTask dependency controllers Expose NotificationManager and Settings for use by the feature in next commit. This is a memory efficient way for accessing SystemTask dependencies from controllers that have SystemTask injected as a dependency. Looks like each direct dependency injection uses 4 bytes RAM. As InfiniTime is close to running out of RAM (using 16 more bytes causes build to fail with "ld: region RAM overflowed with stack") it might be helpful to use this approach more. * Add setting to disable DFU and FS access
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r--src/displayapp/DisplayApp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp
index bfd7dbed..5c50e85f 100644
--- a/src/displayapp/DisplayApp.cpp
+++ b/src/displayapp/DisplayApp.cpp
@@ -50,6 +50,7 @@
#include "displayapp/screens/settings/SettingChimes.h"
#include "displayapp/screens/settings/SettingShakeThreshold.h"
#include "displayapp/screens/settings/SettingBluetooth.h"
+#include "displayapp/screens/settings/SettingOTA.h"
#include "libs/lv_conf.h"
#include "UserApps.h"
@@ -620,6 +621,9 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
case Apps::SettingBluetooth:
currentScreen = std::make_unique<Screens::SettingBluetooth>(this, settingsController);
break;
+ case Apps::SettingOTA:
+ currentScreen = std::make_unique<Screens::SettingOTA>(this, settingsController);
+ break;
case Apps::BatteryInfo:
currentScreen = std::make_unique<Screens::BatteryInfo>(batteryController);
break;