From 4da7118dd40d124bf7220ba984777aa4cfa76464 Mon Sep 17 00:00:00 2001 From: e2002 Date: Sun, 15 Dec 2024 23:10:30 +0300 Subject: [PATCH] v0.9.370 --- README.md | 3 +++ yoRadio/src/core/config.cpp | 6 ++++-- yoRadio/src/core/options.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 914bcf1..3c44e17 100644 --- a/README.md +++ b/README.md @@ -234,6 +234,9 @@ Work is in progress... --- ## Version history +#### v0.9.370 +- fixed the issue with saving settings on fresh ESP modules. + #### v0.9.369 - fixed the issue with the non-functional HSPI bus diff --git a/yoRadio/src/core/config.cpp b/yoRadio/src/core/config.cpp index f708bf0..5d13993 100644 --- a/yoRadio/src/core/config.cpp +++ b/yoRadio/src/core/config.cpp @@ -57,8 +57,10 @@ void Config::init() { #endif eepromRead(EEPROM_START, store); - if (store.config_set != 4262) setDefaults(); - + if (store.config_set != 4262) { + setDefaults(); + eepromWrite(EEPROM_START, store); + } if(store.version>CONFIG_VERSION) store.version=1; while(store.version!=CONFIG_VERSION) _setupVersion(); BOOTLOG("CONFIG_VERSION\t%d", store.version); diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index d029026..a84d8e2 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.369" +#define YOVERSION "0.9.370" /******************************************************* DO NOT EDIT THIS FILE.