From 8a2a2d226558d099243eea0aa9ae22b2791e0e0e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 6 Jun 2023 10:20:46 +1000 Subject: Get basic audio playback going again --- src/ui/ui_fsm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui/ui_fsm.cpp') 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([&]() { StartLvgl(sTouchWheel, sDisplay); }); + transit(); } 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 -- cgit v1.2.3