* added support for other regions - untested #1271
* fix generation of DTU-ID; was computed twice without reset if two radios are enabled
This commit is contained in:
lumapu 2024-01-28 23:32:44 +01:00
parent 97d74d3090
commit dc696d727f
14 changed files with 252 additions and 129 deletions

View file

@ -481,7 +481,8 @@ class Web {
request->arg("device").toCharArray(mConfig->sys.deviceName, DEVNAME_LEN);
mConfig->sys.darkMode = (request->arg("darkMode") == "on");
mConfig->sys.schedReboot = (request->arg("schedReboot") == "on");
mConfig->sys.region = (request->arg("region")).toInt();
mConfig->sys.timezone = (request->arg("timezone")).toInt() - 12;
if (request->arg("cstLnk") != "") {
request->arg("cstLnk").toCharArray(mConfig->plugin.customLink, MAX_CUSTOM_LINK_LEN);