diff --git a/src/CHANGES.md b/src/CHANGES.md index e8b984e2..140183e6 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,5 +1,8 @@ # Development Changes +## 0.8.137 - 2024-08-13 +* fix storage of timezone and region #1723 + ## 0.8.136 - 2024-08-12 * fix save settings for ESP32 devices #1720 diff --git a/src/defines.h b/src/defines.h index fd6675cd..33dc9624 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 8 -#define VERSION_PATCH 136 +#define VERSION_PATCH 137 //------------------------------------- typedef struct { uint8_t ch; diff --git a/src/web/html/setup.html b/src/web/html/setup.html index e7862489..2b59146c 100644 --- a/src/web/html/setup.html +++ b/src/web/html/setup.html @@ -700,14 +700,6 @@ el.push(mlCb("protMask" + i, a[i], chk)) } d.append(...el); - - var tz = [] - for(i = 0; i < 24; i += 0.5) - tz.push([i, ((i-12 > 0) ? "+" : "") + String(i-12)]); - document.getElementById("timezone").append(sel("timezone", tz, obj.timezone + 12)) - var region = [[0, "Europe (860 - 870 MHz)"], [1, "USA, Indonesia (905 - 925 MHz)"], [2, "Brazil (915 - 928 MHz)"]] - document.getElementById("region").append(sel("region", region, obj.region)) - } function parseGeneric(obj) { @@ -723,6 +715,13 @@ ts = obj.ts_now; window.setInterval("tick()", 1000); + + var tz = [] + for(i = 0; i < 24; i += 0.5) + tz.push([i, ((i-12 > 0) ? "+" : "") + String(i-12)]); + document.getElementById("timezone").append(sel("timezone", tz, obj.timezone + 12)) + var region = [[0, "Europe (860 - 870 MHz)"], [1, "USA, Indonesia (905 - 925 MHz)"], [2, "Brazil (915 - 928 MHz)"]] + document.getElementById("region").append(sel("region", region, obj.region)) } function parseStaticIp(obj) {