mirror of https://github.com/arendst/Tasmota.git
Fix settings delta fail
bugfix - settings always default on boot *Moved block to right scope *Got version number right duh
This commit is contained in:
parent
603b628f97
commit
833d89203f
|
@ -1416,6 +1416,13 @@ void SettingsDelta(void)
|
|||
if (Settings.rules[1][0] == 0) { Settings.rules[1][1] = 0; }
|
||||
if (Settings.rules[2][0] == 0) { Settings.rules[2][1] = 0; }
|
||||
}
|
||||
|
||||
// ledpwm
|
||||
if (Settings.version < 0x08030001) {
|
||||
Settings.ledpwm_off = 0;
|
||||
Settings.ledpwm_on = 1023;
|
||||
Settings.ledpwm_mask = 0;
|
||||
}
|
||||
|
||||
if (Settings.version < 0x08030002) {
|
||||
SettingsUpdateText(SET_DEVICENAME, SettingsText(SET_FRIENDLYNAME1));
|
||||
|
@ -1424,10 +1431,5 @@ void SettingsDelta(void)
|
|||
Settings.version = VERSION;
|
||||
SettingsSave(1);
|
||||
}
|
||||
// ledpwm
|
||||
if (Settings.version < 0x080300002) {
|
||||
Settings.ledpwm_off = 0;
|
||||
Settings.ledpwm_on = 1023;
|
||||
Settings.ledpwm_mask = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue