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/running.cpp | |
| parent | 7b72e5479ee6d11f76c49f7463ba0e7f4e5165c5 (diff) | |
| download | tangara-fw-80d7df910987db5201402fe987124f29f09344f3.tar.gz | |
fuck off
Diffstat (limited to 'src/system_fsm/running.cpp')
| -rw-r--r-- | src/system_fsm/running.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/system_fsm/running.cpp b/src/system_fsm/running.cpp index 1822a071..a46cb8dc 100644 --- a/src/system_fsm/running.cpp +++ b/src/system_fsm/running.cpp @@ -5,6 +5,7 @@ */ #include "app_console.hpp" +#include "file_gatherer.hpp" #include "freertos/projdefs.h" #include "result.hpp" @@ -20,6 +21,8 @@ namespace states { static const char kTag[] = "RUN"; +static database::IFileGatherer* sFileGatherer; + /* * Ensure the storage and database are both available. If either of these fails * to open, then we assume it's an issue with the underlying SD card. @@ -38,7 +41,8 @@ void Running::entry() { vTaskDelay(pdMS_TO_TICKS(250)); ESP_LOGI(kTag, "opening database"); - auto database_res = database::Database::Open(); + sFileGatherer = new database::FileGathererImpl(); + auto database_res = database::Database::Open(sFileGatherer, sTagParser.get()); if (database_res.has_error()) { ESP_LOGW(kTag, "failed to open!"); events::Dispatch<StorageError, SystemState, audio::AudioState, ui::UiState>( |
