mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Add Key to set the default of SO128
This commit is contained in:
parent
f0b53cb145
commit
31c8567db3
@ -888,8 +888,11 @@ void SettingsDefaultSet2(void) {
|
||||
Settings->weblog_level = WEB_LOG_LEVEL;
|
||||
SettingsUpdateText(SET_WEBPWD, PSTR(WEB_PASSWORD));
|
||||
SettingsUpdateText(SET_CORS, PSTR(CORS_DOMAIN));
|
||||
Settings->flag5.disable_referer_chk |= true;
|
||||
|
||||
#ifdef DISABLE_REFERER_CHK
|
||||
flag5.disable_referer_chk |= false;
|
||||
#else
|
||||
flag5.disable_referer_chk |= true;
|
||||
#endif
|
||||
// Button
|
||||
flag.button_restrict |= KEY_DISABLE_MULTIPRESS;
|
||||
flag.button_swap |= KEY_SWAP_DOUBLE_PRESS;
|
||||
@ -1397,7 +1400,11 @@ void SettingsDelta(void) {
|
||||
SettingsUpdateText(SET_RGX_PASSWORD, PSTR(WIFI_RGX_PASSWORD));
|
||||
}
|
||||
if (Settings->version < 0x09050007) {
|
||||
Settings->flag5.disable_referer_chk = true;
|
||||
#ifdef DISABLE_REFERER_CHK
|
||||
Settings->flag5.disable_referer_chk |= false;
|
||||
#else
|
||||
Settings->flag5.disable_referer_chk |= true;
|
||||
#endif
|
||||
}
|
||||
|
||||
Settings->version = VERSION;
|
||||
|
Loading…
x
Reference in New Issue
Block a user