From 8225a2a07c7a26b71a0d844f68a2d4aaa5ceec1b 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/17] Initial plan From 54746c97305ecf830637774748eb4019bb9cf833 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/17] 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 e02047e8b3..f6e5786966 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 ef923920b7..431c64183a 100644 --- a/wled00/data/update.htm +++ b/wled00/data/update.htm @@ -28,10 +28,13 @@