From 81c69f89c6bdea71f882dfe0120f9377c3d9b291 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sun, 10 May 2026 22:58:46 +0200 Subject: [PATCH] Splash screen: show unofficial build marker for Plus builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add FIRMWARE_PLUS_BUILD compile flag to both companion sections in platformio.ini. When set, SplashScreen shows "+ unofficial build" in yellow below the build date. Avoids runtime string parsing — the existing version stripping logic (cuts at first dash) is unchanged. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/UITask.cpp | 5 +++++ variants/wio-tracker-l1/platformio.ini | 2 ++ 2 files changed, 7 insertions(+) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index 87c37bb1..0fb86dec 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -66,6 +66,11 @@ public: display.setTextSize(1); display.drawTextCentered(display.width()/2, 42, FIRMWARE_BUILD_DATE); +#ifdef FIRMWARE_PLUS_BUILD + display.setColor(DisplayDriver::YELLOW); + display.drawTextCentered(display.width()/2, 54, "+ unofficial build"); +#endif + return 1000; } diff --git a/variants/wio-tracker-l1/platformio.ini b/variants/wio-tracker-l1/platformio.ini index 115d686f..34d21989 100644 --- a/variants/wio-tracker-l1/platformio.ini +++ b/variants/wio-tracker-l1/platformio.ini @@ -68,6 +68,7 @@ build_flags = ${WioTrackerL1.build_flags} -D OFFLINE_QUEUE_SIZE=256 -D PIN_BUZZER=12 -D QSPIFLASH=1 + -D FIRMWARE_PLUS_BUILD=1 ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1 ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1 build_src_filter = ${WioTrackerL1.build_src_filter} @@ -106,6 +107,7 @@ build_flags = ${WioTrackerL1.build_flags} -D PIN_BUZZER=12 -D QSPIFLASH=1 -D ADVERT_NAME='"@@MAC"' + -D FIRMWARE_PLUS_BUILD=1 -D ENV_PIN_SDA=PIN_WIRE1_SDA -D ENV_PIN_SCL=PIN_WIRE1_SCL ; -D MESH_PACKET_LOGGING=1