From eb025461a1001fbbbbfc987b687bddf9370247eb Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 14 Apr 2020 16:58:11 +0200 Subject: [PATCH] Update settings.ino --- tasmota/settings.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasmota/settings.ino b/tasmota/settings.ino index 18b8017ee..3cd6ceb49 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -1243,11 +1243,11 @@ void SettingsDelta(void) Settings.ex_serial_config = TS_SERIAL_8N1; } if (Settings.version < 0x07010204) { - // if (Settings.flag3.ex_cors_enabled == 1) { - // strlcpy(Settings.ex_cors_domain, CORS_ENABLED_ALL, sizeof(Settings.ex_cors_domain)); - // } else { - // Settings.ex_cors_domain[0] = 0; - // } + if (Settings.flag3.mqtt_buttons == 1) { + strlcpy(Settings.ex_cors_domain, CORS_ENABLED_ALL, sizeof(Settings.ex_cors_domain)); + } else { + Settings.ex_cors_domain[0] = 0; + } } if (Settings.version < 0x07010205) { Settings.seriallog_level = Settings.ex_seriallog_level; // 09E -> 452