summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-08 16:58:30 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-08 16:58:30 +1000
commitb0d745d02dcfd6ab9b1ad14e9060b39bf9ad7bb8 (patch)
treea6ca6390852d64375524d480e9586a58c64cef08 /src/ui/ui_fsm.cpp
parent64d9cec8b074eaf9280bc92e38656a35a4e5e452 (diff)
downloadtangara-fw-b0d745d02dcfd6ab9b1ad14e9060b39bf9ad7bb8.tar.gz
Flesh out onboarding a little, and add a way to get into it
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() {}