From e73b5f317f281b75375c70b42ba0a80089336d15 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Tue, 13 Jan 2026 08:45:17 +0100 Subject: [PATCH] Fixes --- Devices/guition-jc1060p470ciwy/Source/devices/Display.cpp | 2 +- Devices/m5stack-tab5/Source/Configuration.cpp | 4 ++-- Devices/m5stack-tab5/Source/devices/Display.cpp | 2 +- Devices/m5stack-tab5/Source/devices/Ili9881cDisplay.cpp | 6 ++++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Devices/guition-jc1060p470ciwy/Source/devices/Display.cpp b/Devices/guition-jc1060p470ciwy/Source/devices/Display.cpp index 224dc245..151b05f4 100644 --- a/Devices/guition-jc1060p470ciwy/Source/devices/Display.cpp +++ b/Devices/guition-jc1060p470ciwy/Source/devices/Display.cpp @@ -61,5 +61,5 @@ std::shared_ptr createDisplay() { }); const auto display = std::make_shared(configuration); - return std::reinterpret_pointer_cast(display); + return std::static_pointer_cast(display); } diff --git a/Devices/m5stack-tab5/Source/Configuration.cpp b/Devices/m5stack-tab5/Source/Configuration.cpp index ab6c5528..fe911692 100644 --- a/Devices/m5stack-tab5/Source/Configuration.cpp +++ b/Devices/m5stack-tab5/Source/Configuration.cpp @@ -68,7 +68,7 @@ static bool initBoot() { constexpr auto IO_EXPANDER2_ADDRESS = 0x44; if (!i2c::masterWriteRegisterArray(I2C_NUM_0, IO_EXPANDER2_ADDRESS, reg_data_io2, sizeof(reg_data_io2))) { - LOGGER.error("IO expander 1 init failed in phase 2"); + LOGGER.error("IO expander 2 init failed"); return false; } @@ -77,7 +77,7 @@ static bool initBoot() { tt::kernel::delayTicks(10); if (!i2c::masterWriteRegisterArray(I2C_NUM_0, IO_EXPANDER1_ADDRESS, reg_data_io1_2, sizeof(reg_data_io1_2))) { - LOGGER.error("IO expander 2 init failed"); + LOGGER.error("IO expander 1 init failed in phase 2"); return false; } diff --git a/Devices/m5stack-tab5/Source/devices/Display.cpp b/Devices/m5stack-tab5/Source/devices/Display.cpp index 9fe28b01..3d74e1a0 100644 --- a/Devices/m5stack-tab5/Source/devices/Display.cpp +++ b/Devices/m5stack-tab5/Source/devices/Display.cpp @@ -60,5 +60,5 @@ std::shared_ptr createDisplay() { }); const auto display = std::make_shared(configuration); - return std::reinterpret_pointer_cast(display); + return std::static_pointer_cast(display); } diff --git a/Devices/m5stack-tab5/Source/devices/Ili9881cDisplay.cpp b/Devices/m5stack-tab5/Source/devices/Ili9881cDisplay.cpp index ae55a3db..a1ca5609 100644 --- a/Devices/m5stack-tab5/Source/devices/Ili9881cDisplay.cpp +++ b/Devices/m5stack-tab5/Source/devices/Ili9881cDisplay.cpp @@ -88,7 +88,8 @@ esp_lcd_panel_dev_config_t Ili9881cDisplay::createPanelConfig(std::shared_ptr