mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 04:06:34 +00:00
Try to fix intermittent watchdog reset
Try to fix intermittent watchdog reset on GUI emulation change (#7886)
This commit is contained in:
parent
e04bb5ecff
commit
2d6ced9521
@ -58,7 +58,7 @@ bool UdpDisconnect(void)
|
|||||||
|
|
||||||
bool UdpConnect(void)
|
bool UdpConnect(void)
|
||||||
{
|
{
|
||||||
if (!udp_connected) {
|
if (!udp_connected && !restart_flag) {
|
||||||
// Simple Service Discovery Protocol (SSDP)
|
// Simple Service Discovery Protocol (SSDP)
|
||||||
if (PortUdp.beginMulticast(WiFi.localIP(), IPAddress(239,255,255,250), 1900)) {
|
if (PortUdp.beginMulticast(WiFi.localIP(), IPAddress(239,255,255,250), 1900)) {
|
||||||
AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_UPNP D_MULTICAST_REJOINED));
|
AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_UPNP D_MULTICAST_REJOINED));
|
||||||
|
@ -1935,6 +1935,7 @@ void OtherSaveSettings(void)
|
|||||||
SettingsUpdateText(SET_WEBPWD, (!strlen(tmp)) ? "" : (strchr(tmp,'*')) ? SettingsText(SET_WEBPWD) : tmp);
|
SettingsUpdateText(SET_WEBPWD, (!strlen(tmp)) ? "" : (strchr(tmp,'*')) ? SettingsText(SET_WEBPWD) : tmp);
|
||||||
Settings.flag.mqtt_enabled = WebServer->hasArg("b1"); // SetOption3 - Enable MQTT
|
Settings.flag.mqtt_enabled = WebServer->hasArg("b1"); // SetOption3 - Enable MQTT
|
||||||
#ifdef USE_EMULATION
|
#ifdef USE_EMULATION
|
||||||
|
UdpDisconnect();
|
||||||
#if defined(USE_EMULATION_WEMO) || defined(USE_EMULATION_HUE)
|
#if defined(USE_EMULATION_WEMO) || defined(USE_EMULATION_HUE)
|
||||||
WebGetArg("b2", tmp, sizeof(tmp));
|
WebGetArg("b2", tmp, sizeof(tmp));
|
||||||
Settings.flag2.emulation = (!strlen(tmp)) ? 0 : atoi(tmp);
|
Settings.flag2.emulation = (!strlen(tmp)) ? 0 : atoi(tmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user