From 9618a79162e0b63b5bdf80b8ca8bc9a4788bb8e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Sep 2025 12:13:03 +0000 Subject: [PATCH 01/30] Initial plan From 5b3e81c87af53e21a88d3037753da605d093c25b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Sep 2025 12:28:47 +0000 Subject: [PATCH 02/30] Implement OTA release compatibility checking system Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com> --- tools/cdata.js | 6 ++ wled00/data/update.htm | 3 + wled00/ota_release_check.cpp | 151 +++++++++++++++++++++++++++++++++++ wled00/ota_release_check.h | 37 +++++++++ wled00/wled_server.cpp | 129 ++++++++++++++++++++++++++---- 5 files changed, 309 insertions(+), 17 deletions(-) create mode 100644 wled00/ota_release_check.cpp create mode 100644 wled00/ota_release_check.h diff --git a/tools/cdata.js b/tools/cdata.js index c05b28e522..3f7ce0f4e8 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -95,6 +95,12 @@ function adoptVersionAndRepo(html) { if (version) { html = html.replaceAll("##VERSION##", version); } + + // Replace ##RELEASE## with a placeholder that will be replaced at runtime + // Since we can't determine the exact release name at build time (it depends on build flags), + // we'll use a special marker that gets replaced in the server code + html = html.replaceAll("##RELEASE##", "%RELEASE%"); + return html; } diff --git a/wled00/data/update.htm b/wled00/data/update.htm index 783a609ece..a09f18723e 100644 --- a/wled00/data/update.htm +++ b/wled00/data/update.htm @@ -28,10 +28,13 @@