From 3f5ed098ded65c242dadf91ab9f9f74686f1caa1 Mon Sep 17 00:00:00 2001 From: e2002 Date: Mon, 16 Dec 2024 20:46:41 +0300 Subject: [PATCH] v0.9.375 --- README.md | 5 ++++- yoRadio/src/core/netserver.cpp | 8 ++++---- yoRadio/src/core/options.h | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4682282..f3e0234 100644 --- a/README.md +++ b/README.md @@ -234,10 +234,13 @@ Work is in progress... --- ## Version history +#### v0.9.375 +- fixed the issue with saving settings for TIMEZONE. + ### v0.9.373 - fixed the issue with displaying the settings page on fresh ESP modules after saving the weather key (a [reset](https://github.com/e2002/yoradio/wiki/List-of-available-commands-(UART-telnet-GET-POST)) may be required) - + #### v0.9.370 - fixed the issue with saving settings on fresh ESP modules. diff --git a/yoRadio/src/core/netserver.cpp b/yoRadio/src/core/netserver.cpp index a31866e..2b624ae 100644 --- a/yoRadio/src/core/netserver.cpp +++ b/yoRadio/src/core/netserver.cpp @@ -475,13 +475,13 @@ void NetServer::onWsMessage(void *arg, uint8_t *data, size_t len, uint8_t client return; } if (strcmp(cmd, "tzh") == 0) { - int vali = atoi(val); - config.store.tzHour = vali; + int8_t vali = atoi(val); + config.saveValue(&config.store.tzHour, vali); return; } if (strcmp(cmd, "tzm") == 0) { - int vali = atoi(val); - config.store.tzMin = vali; + int8_t vali = atoi(val); + config.saveValue(&config.store.tzMin, vali); return; } if (strcmp(cmd, "sntp2") == 0) { diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index ab25389..d943daf 100644 --- a/yoRadio/src/core/options.h +++ b/yoRadio/src/core/options.h @@ -1,7 +1,7 @@ #ifndef options_h #define options_h -#define YOVERSION "0.9.373" +#define YOVERSION "0.9.375" /******************************************************* DO NOT EDIT THIS FILE.