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.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index c463933f..70a77c2a 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -23,6 +23,7 @@
#include "relative_wheel.hpp"
#include "screen.hpp"
#include "screen_menu.hpp"
+#include "screen_onboarding.hpp"
#include "screen_playing.hpp"
#include "screen_settings.hpp"
#include "screen_splash.hpp"
@@ -150,7 +151,15 @@ void Splash::react(const system_fsm::BootComplete& ev) {
ESP_LOGE(kTag, "no input devices initialised!");
}
- transit<Browse>();
+ if (sServices->nvs().HasShownOnboarding().get()) {
+ transit<Browse>();
+ } else {
+ transit<Onboarding>();
+ }
+}
+
+void Onboarding::entry() {
+ sCurrentScreen.reset(new screens::onboarding::LinkToManual());
}
void Browse::entry() {}