From 3db3fcd8f7523f61b61bc82626b0c4ab753bc941 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Tue, 2 Sep 2025 22:57:46 +0200 Subject: [PATCH] Update function names and file name --- Boards/UnPhone/Source/{PowerOn.cpp => InitBoot.cpp} | 2 +- Boards/UnPhone/Source/UnPhone.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename Boards/UnPhone/Source/{PowerOn.cpp => InitBoot.cpp} (99%) diff --git a/Boards/UnPhone/Source/PowerOn.cpp b/Boards/UnPhone/Source/InitBoot.cpp similarity index 99% rename from Boards/UnPhone/Source/PowerOn.cpp rename to Boards/UnPhone/Source/InitBoot.cpp index c75bf5ee..3f60a4e6 100644 --- a/Boards/UnPhone/Source/PowerOn.cpp +++ b/Boards/UnPhone/Source/InitBoot.cpp @@ -182,7 +182,7 @@ static bool unPhonePowerOn() { return true; } -bool unPhoneInitPower() { +bool initBoot() { ESP_LOGI(TAG, LOG_MESSAGE_POWER_ON_START); if (!unPhonePowerOn()) { diff --git a/Boards/UnPhone/Source/UnPhone.cpp b/Boards/UnPhone/Source/UnPhone.cpp index 986da369..895e5f2a 100644 --- a/Boards/UnPhone/Source/UnPhone.cpp +++ b/Boards/UnPhone/Source/UnPhone.cpp @@ -7,7 +7,7 @@ #define UNPHONE_SPI_TRANSFER_SIZE_LIMIT (UNPHONE_LCD_HORIZONTAL_RESOLUTION * UNPHONE_LCD_SPI_TRANSFER_HEIGHT * LV_COLOR_DEPTH / 8) -bool unPhoneInitPower(); +bool initBoot(); static tt::hal::DeviceVector createDevices() { return { @@ -18,7 +18,7 @@ static tt::hal::DeviceVector createDevices() { } extern const tt::hal::Configuration unPhone = { - .initBoot = unPhoneInitPower, + .initBoot = initBoot, .createDevices = createDevices, .i2c = { tt::hal::i2c::Configuration {