configmanager.cpp: bugfix version compare
This commit is contained in:
parent
74bc84b0e1
commit
ad3567df45
@ -129,7 +129,8 @@ bool loadConfig() {
|
||||
switch (version_compare(PROGVERSION, cfg.version)) {
|
||||
case -1: // device configuration belongs to newer than current firmware
|
||||
ESP_LOGE(TAG, "Incompatible device configuration");
|
||||
return false;
|
||||
eraseConfig();
|
||||
return true;
|
||||
case 1: // device configuration belongs to older than current firmware
|
||||
ESP_LOGW(TAG, "Device was updated, attempt to migrate configuration");
|
||||
migrateConfig();
|
||||
|
Loading…
Reference in New Issue
Block a user