summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index f12104e6..6d53eb45 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -28,12 +28,14 @@ auto UiState::Init(drivers::GpioExpander* gpio_expander,
sGpioExpander = gpio_expander;
sTouchWheel = touchwheel;
sDisplay = display;
+
+ StartLvgl(sTouchWheel, sDisplay);
}
namespace states {
void PreBoot::react(const system_fsm::DisplayReady& ev) {
- transit<Splash>([&]() { StartLvgl(sTouchWheel, sDisplay); });
+ transit<Splash>();
}
void Splash::entry() {
@@ -45,7 +47,7 @@ void Splash::react(const system_fsm::BootComplete& ev) {
}
void Interactive::entry() {
- //sCurrentScreen.reset(new screens::Menu());
+ // sCurrentScreen.reset(new screens::Menu());
}
} // namespace states