summaryrefslogtreecommitdiff
path: root/src/tangara/system_fsm/booting.cpp
diff options
context:
space:
mode:
authorcooljqln <cooljqln@noreply.codeberg.org>2025-08-15 05:03:17 +0200
committercooljqln <cooljqln@noreply.codeberg.org>2025-08-15 05:03:17 +0200
commit28a368ebe07e22fbf071ce882effe9088516a8c6 (patch)
treed13241937786b3d422423cc2b804e0ec42b21335 /src/tangara/system_fsm/booting.cpp
parent2b2e595a8fb28e34ec33a98035c31bd4cba76808 (diff)
parent73baf2f88f61e307afd6cd17f6727da4e446b64c (diff)
downloadtangara-fw-28a368ebe07e22fbf071ce882effe9088516a8c6.tar.gz
Merge pull request 'Migrate to the new esp-idf I2C driver' (#424) from jqln/i2c-driver-upgrade into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/424
Diffstat (limited to 'src/tangara/system_fsm/booting.cpp')
-rw-r--r--src/tangara/system_fsm/booting.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tangara/system_fsm/booting.cpp b/src/tangara/system_fsm/booting.cpp
index 0bc6da8e..8373a928 100644
--- a/src/tangara/system_fsm/booting.cpp
+++ b/src/tangara/system_fsm/booting.cpp
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
+#include "drivers/wm8523.hpp"
#include "system_fsm/system_fsm.hpp"
#include <cstdint>
@@ -91,6 +92,7 @@ auto Booting::entry() -> void {
sServices->touchwheel(
std::unique_ptr<drivers::TouchWheel>{drivers::TouchWheel::Create()});
sServices->haptics(std::make_unique<drivers::Haptics>(sServices->nvs()));
+ ESP_ERROR_CHECK(drivers::wm8523::Init());
auto adc = drivers::AdcBattery::Create();
sServices->battery(std::make_unique<battery::Battery>(