Merge branch 'main' into feature/companion-repeater-presets

This commit is contained in:
Jakub
2026-06-18 22:54:05 +02:00
8 changed files with 200 additions and 2 deletions
@@ -125,6 +125,7 @@ static const int QUICK_MSGS_MAX = 10;
#include "AutoAdvertScreen.h"
#include "TrailScreen.h"
#include "CompassScreen.h"
#include "DiagnosticsScreen.h"
#include "ToolsScreen.h"
#ifndef BATT_MIN_MILLIVOLTS
@@ -1198,6 +1199,7 @@ void UITask::begin(DisplayDriver* display, SensorManager* sensors, NodePrefs* no
auto_advert_screen = new AutoAdvertScreen(this, node_prefs);
trail_screen = new TrailScreen(this, &_trail);
compass_screen = new CompassScreen(this);
diag_screen = new DiagnosticsScreen(this);
applyBrightness();
applyFont();
applyRotation();
@@ -1244,6 +1246,10 @@ void UITask::gotoCompassScreen() {
setCurrScreen(compass_screen);
}
void UITask::gotoDiagnosticsScreen() {
setCurrScreen(diag_screen);
}
void UITask::gotoAutoAdvertScreen() {
((AutoAdvertScreen*)auto_advert_screen)->enter();
setCurrScreen(auto_advert_screen);