summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-06 10:20:46 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-06 10:20:46 +1000
commit8a2a2d226558d099243eea0aa9ae22b2791e0e0e (patch)
tree16c3defdb167ea7f452e5ce96118b165acf6602f /src/ui/ui_fsm.cpp
parentee5f662f9bb150138545ca35ef5c4896eb74daea (diff)
downloadtangara-fw-8a2a2d226558d099243eea0aa9ae22b2791e0e0e.tar.gz
Get basic audio playback going again
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