summaryrefslogtreecommitdiff
path: root/src/tangara
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2025-08-08 16:14:41 +1000
committerjacqueline <me@jacqueline.id.au>2025-08-08 16:14:41 +1000
commit73baf2f88f61e307afd6cd17f6727da4e446b64c (patch)
treed13241937786b3d422423cc2b804e0ec42b21335 /src/tangara
parent2b2e595a8fb28e34ec33a98035c31bd4cba76808 (diff)
downloadtangara-fw-73baf2f88f61e307afd6cd17f6727da4e446b64c.tar.gz
Migrate to the new esp-idf I2C driver
It's a better, less verbose driver, and also this fixes an occasional crash on boot.
Diffstat (limited to 'src/tangara')
-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>(