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.