summaryrefslogtreecommitdiff
path: root/src/system_fsm/service_locator.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-13 10:09:04 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-13 10:09:04 +1000
commit0ea358ab8157d743dc07f12bde5fb34d03a02522 (patch)
treefade7a837b75f94df95ac2a00a0775353179155d /src/system_fsm/service_locator.cpp
parentb0aa9ab391143a8139373e42ea95ccb6ed14ce60 (diff)
downloadtangara-fw-0ea358ab8157d743dc07f12bde5fb34d03a02522.tar.gz
Make the onboarding flow basically work. Much still to do!
Diffstat (limited to 'src/system_fsm/service_locator.cpp')
-rw-r--r--src/system_fsm/service_locator.cpp6
1 files changed, 2 insertions, 4 deletions
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 <memory>
#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