From 0ea358ab8157d743dc07f12bde5fb34d03a02522 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 13 Sep 2023 10:09:04 +1000 Subject: Make the onboarding flow basically work. Much still to do! --- src/system_fsm/service_locator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/system_fsm/service_locator.cpp') diff --git a/src/system_fsm/service_locator.cpp b/src/system_fsm/service_locator.cpp index 1d4d8a65..d8dcf44a 100644 --- a/src/system_fsm/service_locator.cpp +++ b/src/system_fsm/service_locator.cpp @@ -9,13 +9,11 @@ #include #include "nvs.hpp" +#include "storage.hpp" #include "touchwheel.hpp" namespace system_fsm { -auto ServiceLocator::instance() -> ServiceLocator& { - static ServiceLocator sInstance{}; - return sInstance; -} +ServiceLocator::ServiceLocator() : sd_(drivers::SdState::kNotPresent) {} } // namespace system_fsm -- cgit v1.2.3