diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-25 17:42:36 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-25 17:43:12 +1000 |
| commit | 80d7df910987db5201402fe987124f29f09344f3 (patch) | |
| tree | 7e8c1e04ab40026087343efee95a771c7839b32f /src/system_fsm/booting.cpp | |
| parent | 7b72e5479ee6d11f76c49f7463ba0e7f4e5165c5 (diff) | |
| download | tangara-fw-80d7df910987db5201402fe987124f29f09344f3.tar.gz | |
fuck off
Diffstat (limited to 'src/system_fsm/booting.cpp')
| -rw-r--r-- | src/system_fsm/booting.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp index 48b027d2..076f4570 100644 --- a/src/system_fsm/booting.cpp +++ b/src/system_fsm/booting.cpp @@ -17,6 +17,7 @@ #include "spi.hpp" #include "system_events.hpp" #include "system_fsm.hpp" +#include "tag_parser.hpp" #include "track_queue.hpp" #include "ui_fsm.hpp" @@ -50,17 +51,20 @@ auto Booting::entry() -> void { // Start bringing up LVGL now, since we have all of its prerequisites. sTrackQueue.reset(new audio::TrackQueue()); + /* ESP_LOGI(kTag, "starting ui"); if (!ui::UiState::Init(sGpios.get(), sTrackQueue.get())) { events::Dispatch<FatalError, SystemState, ui::UiState, audio::AudioState>( FatalError()); return; } + */ // Install everything else that is certain to be needed. ESP_LOGI(kTag, "installing remaining drivers"); sSamd.reset(drivers::Samd::Create()); sBattery.reset(drivers::Battery::Create()); + sTagParser.reset(new database::TagParserImpl()); if (!sSamd || !sBattery) { events::Dispatch<FatalError, SystemState, ui::UiState, audio::AudioState>( @@ -72,7 +76,8 @@ auto Booting::entry() -> void { // state machines and inform them that the system is ready. ESP_LOGI(kTag, "starting audio"); - if (!audio::AudioState::Init(sGpios.get(), sDatabase, sTrackQueue.get())) { + if (!audio::AudioState::Init(sGpios.get(), sDatabase, sTagParser, + sTrackQueue.get())) { events::Dispatch<FatalError, SystemState, ui::UiState, audio::AudioState>( FatalError()); return; |
