Skip to content

Commit

Permalink
20240531
Browse files Browse the repository at this point in the history
- Fix multiply mDSN starts caused ESP32 hangups. Thanks [Dmitrij](https://t.me/XZG_FW/17/1037) 🚀
- Update cz.json #58 Thanks @leroyloren 🏆
  • Loading branch information
xyzroe committed May 30, 2024
1 parent 9a943d1 commit c05ccf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void startServers(bool usb = false)
}
}

mDNS_start();
/* //not available now
if (vpnCfg.hnEnable)
{
Expand All @@ -157,7 +158,6 @@ void handleTmrNetworkOverseer()
if (WiFi.isConnected())
{
LOGD("WIFI CONNECTED");
mDNS_start();
tmrNetworkOverseer.stop();
}
else
Expand All @@ -175,7 +175,6 @@ void handleTmrNetworkOverseer()
if (vars.connectedEther)
{
LOGD("LAN CONNECTED");
mDNS_start();
tmrNetworkOverseer.stop();
}
else
Expand Down Expand Up @@ -532,8 +531,8 @@ void setup()
if (hwConfig.mist.uartSelPin > 0)
{
pinMode(hwConfig.mist.uartSelPin, OUTPUT);
//vars.hwUartSelIs = true;
// usbModeSet(XZG);
// vars.hwUartSelIs = true;
// usbModeSet(XZG);
bool fixState = (hwConfig.mist.uartSelPlr == 1) ? LOW : HIGH;
digitalWrite(hwConfig.mist.uartSelPin, fixState);
}
Expand Down Expand Up @@ -569,7 +568,7 @@ void setup()
printNVSFreeSpace();

zbFwCheck();

LOGD("done");
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// AUTO GENERATED FILE
#ifndef VERSION
#define VERSION "20240530"
#define VERSION "20240531"
#endif

0 comments on commit c05ccf4

Please sign in to comment.