From 371f0a20cad4dfcb3237db6f72a7e35403950938 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 30 Jun 2023 20:48:40 +1000 Subject: Clean up gpios interface --- src/system_fsm/booting.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/system_fsm/booting.cpp') diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp index e7505f11..41adb906 100644 --- a/src/system_fsm/booting.cpp +++ b/src/system_fsm/booting.cpp @@ -11,7 +11,7 @@ #include "esp_err.h" #include "esp_log.h" #include "event_queue.hpp" -#include "gpio_expander.hpp" +#include "gpios.hpp" #include "lvgl/lvgl.h" #include "relative_wheel.hpp" #include "spi.hpp" @@ -42,12 +42,12 @@ auto Booting::entry() -> void { // These drivers are the bare minimum to even show an error. If these fail, // then the system is completely hosed. - sGpioExpander.reset(drivers::GpioExpander::Create()); - assert(sGpioExpander != nullptr); + sGpios.reset(drivers::Gpios::Create()); + assert(sGpios != nullptr); // Start bringing up LVGL now, since we have all of its prerequisites. ESP_LOGI(kTag, "starting ui"); - if (!ui::UiState::Init(sGpioExpander.get())) { + if (!ui::UiState::Init(sGpios.get())) { events::Dispatch( FatalError()); return; @@ -68,7 +68,7 @@ auto Booting::entry() -> void { // state machines and inform them that the system is ready. ESP_LOGI(kTag, "starting audio"); - if (!audio::AudioState::Init(sGpioExpander.get(), sDatabase)) { + if (!audio::AudioState::Init(sGpios.get(), sDatabase)) { events::Dispatch( FatalError()); return; -- cgit v1.2.3