Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tangara-fw/src/system_fsm/service_locator.cpp

22 lines
364 B

/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#include "service_locator.hpp"
#include <memory>
#include "nvs.hpp"
#include "touchwheel.hpp"
namespace system_fsm {
auto ServiceLocator::instance() -> ServiceLocator& {
static ServiceLocator sInstance{};
return sInstance;
}
} // namespace system_fsm