From d8981ae3a7341e9fe5f3a99857ec9127d0ae49d9 Mon Sep 17 00:00:00 2001 From: e2002 Date: Mon, 14 Jul 2025 17:35:26 +0300 Subject: [PATCH] v0.9.515 --- README.md | 5 ++++- yoRadio/src/core/netserver.cpp | 9 ++++----- yoRadio/src/core/options.h | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7260c83..546b924 100644 --- a/README.md +++ b/README.md @@ -234,11 +234,14 @@ Work is in progress... --- ## Version history +### 0.9.515 +- fixed a bug with resetting all parameters when resetting only one section of parameters + ### 0.9.512 - fixed bug with saving ntp server #1 value ### 0.9.511 -In this version, the contents of the data/www directory have changed, so that the first time you flash it, you will be greeted by WEB Board Uploader. Just upload all the files from data/www (11 pcs) to it +In this version, the contents of the data/www directory have changed, so that the first time you flash it, you will be greeted by WEB Board Uploader. Just upload all the files from data/www (11 pcs) to it\ or -> **!!! a [full update](#update-over-web-interface) with Sketch data upload is required. After updating please press CTRL+F5 in browser !!!** - fixed a bug with saving smartstart mode - fixed a bug with no restart when initially uploading files to spiffs diff --git a/yoRadio/src/core/netserver.cpp b/yoRadio/src/core/netserver.cpp index 5b5d553..8462940 100644 --- a/yoRadio/src/core/netserver.cpp +++ b/yoRadio/src/core/netserver.cpp @@ -699,12 +699,15 @@ void NetServer::onWsMessage(void *arg, uint8_t *data, size_t len, uint8_t client config.saveValue(&config.store.fliptouch, false, false); config.saveValue(&config.store.dbgtouch, false, false); config.saveValue(&config.store.skipPlaylistUpDown, false); - setEncAcceleration(200); setIRTolerance(40); requestOnChange(GETCONTROLS, clientId); return; } + if (strcmp(val, "1") == 0) { + config.reset(); + return; + } } /* EOF RESETS */ if (strcmp(cmd, "volume") == 0) { uint8_t v = atoi(val); @@ -764,10 +767,6 @@ void NetServer::onWsMessage(void *arg, uint8_t *data, size_t len, uint8_t client ESP.restart(); return; } - if (strcmp(cmd, "reset") == 0) { - config.reset(); - return; - } if (strcmp(cmd, "submitplaylist") == 0) { return; } diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index a5fa2ec..b4f57d1 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.512" +#define YOVERSION "0.9.515" /******************************************************* DO NOT EDIT THIS FILE.