This commit is contained in:
e2002
2024-12-15 23:10:30 +03:00
parent 051edee3ff
commit 4da7118dd4
3 changed files with 8 additions and 3 deletions

View File

@@ -234,6 +234,9 @@ Work is in progress...
--- ---
## Version history ## Version history
#### v0.9.370
- fixed the issue with saving settings on fresh ESP modules.
#### v0.9.369 #### v0.9.369
- fixed the issue with the non-functional HSPI bus - fixed the issue with the non-functional HSPI bus

View File

@@ -57,8 +57,10 @@ void Config::init() {
#endif #endif
eepromRead(EEPROM_START, store); 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; if(store.version>CONFIG_VERSION) store.version=1;
while(store.version!=CONFIG_VERSION) _setupVersion(); while(store.version!=CONFIG_VERSION) _setupVersion();
BOOTLOG("CONFIG_VERSION\t%d", store.version); BOOTLOG("CONFIG_VERSION\t%d", store.version);

View File

@@ -1,7 +1,7 @@
#ifndef options_h #ifndef options_h
#define options_h #define options_h
#define YOVERSION "0.9.369" #define YOVERSION "0.9.370"
/******************************************************* /*******************************************************
DO NOT EDIT THIS FILE. DO NOT EDIT THIS FILE.