From 73baf2f88f61e307afd6cd17f6727da4e446b64c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 8 Aug 2025 16:14:41 +1000 Subject: Migrate to the new esp-idf I2C driver It's a better, less verbose driver, and also this fixes an occasional crash on boot. --- src/tangara/system_fsm/booting.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tangara') 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 @@ -91,6 +92,7 @@ auto Booting::entry() -> void { sServices->touchwheel( std::unique_ptr{drivers::TouchWheel::Create()}); sServices->haptics(std::make_unique(sServices->nvs())); + ESP_ERROR_CHECK(drivers::wm8523::Init()); auto adc = drivers::AdcBattery::Create(); sServices->battery(std::make_unique( -- cgit v1.2.3