diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-07-24 15:29:45 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-07-24 15:29:45 +1000 |
| commit | 0cc75366848e9205ac88884afcc128925024ccec (patch) | |
| tree | 82fcd90d7f427c5f40112b8d8aa6293535372702 /src/tangara/system_fsm/booting.cpp | |
| parent | eb5d0d50cd5a8d807897c08438e932083e5197c2 (diff) | |
| download | tangara-fw-0cc75366848e9205ac88884afcc128925024ccec.tar.gz | |
Add a settings screen with power+battery info
Mostly for debugging, but also u can toggle fast charging off and on now
Diffstat (limited to 'src/tangara/system_fsm/booting.cpp')
| -rw-r--r-- | src/tangara/system_fsm/booting.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tangara/system_fsm/booting.cpp b/src/tangara/system_fsm/booting.cpp index a3fed9fa..1f99e3ab 100644 --- a/src/tangara/system_fsm/booting.cpp +++ b/src/tangara/system_fsm/booting.cpp @@ -87,7 +87,7 @@ auto Booting::entry() -> void { ESP_LOGI(kTag, "installing remaining drivers"); drivers::spiffs_mount(); - sServices->samd(std::unique_ptr<drivers::Samd>(drivers::Samd::Create())); + sServices->samd(std::make_unique<drivers::Samd>(sServices->nvs())); sServices->touchwheel( std::unique_ptr<drivers::TouchWheel>{drivers::TouchWheel::Create()}); sServices->haptics(std::make_unique<drivers::Haptics>(sServices->nvs())); @@ -96,8 +96,8 @@ auto Booting::entry() -> void { sServices->battery(std::make_unique<battery::Battery>( sServices->samd(), std::unique_ptr<drivers::AdcBattery>(adc))); - sServices->track_queue( - std::make_unique<audio::TrackQueue>(sServices->bg_worker(), sServices->database())); + sServices->track_queue(std::make_unique<audio::TrackQueue>( + sServices->bg_worker(), sServices->database())); sServices->tag_parser(std::make_unique<database::TagParserImpl>()); sServices->collator(locale::CreateCollator()); sServices->tts(std::make_unique<tts::Provider>()); |
