summaryrefslogtreecommitdiff
path: root/src/system_fsm/booting.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-11-07 10:32:07 +1100
committerjacqueline <me@jacqueline.id.au>2023-11-07 10:32:07 +1100
commit499d5a942fc2ad0149b0a16e978e090336dd8319 (patch)
tree1f671f0e3025b1350b25511e2442dfede19677df /src/system_fsm/booting.cpp
parentd36fe9be6b522a3dade389213a0bb7e26a169627 (diff)
downloadtangara-fw-499d5a942fc2ad0149b0a16e978e090336dd8319.tar.gz
Add a wrapper codec source that does readahead
Diffstat (limited to 'src/system_fsm/booting.cpp')
-rw-r--r--src/system_fsm/booting.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp
index 893a4560..f509c52e 100644
--- a/src/system_fsm/booting.cpp
+++ b/src/system_fsm/booting.cpp
@@ -32,6 +32,7 @@
#include "spi.hpp"
#include "system_events.hpp"
#include "tag_parser.hpp"
+#include "tasks.hpp"
#include "touchwheel.hpp"
#include "track_queue.hpp"
#include "ui_fsm.hpp"
@@ -63,6 +64,10 @@ auto Booting::entry() -> void {
return;
}
+ ESP_LOGI(kTag, "starting bg worker");
+ sServices->bg_worker(std::unique_ptr<tasks::Worker>{
+ tasks::Worker::Start<tasks::Type::kDatabaseBackground>()});
+
ESP_LOGI(kTag, "installing remaining drivers");
sServices->samd(std::unique_ptr<drivers::Samd>(drivers::Samd::Create()));
vTaskDelay(pdMS_TO_TICKS(1000));