Skip to content

Commit

Permalink
port is not required anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 20, 2025
1 parent 6606123 commit ba24ea9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,18 +482,17 @@ void DMD::FindDisplays()
if (pConfig->IsZeDMDWiFiEnabled())
{
std::string WiFiAddr = pConfig->GetZeDMDWiFiAddr() ? pConfig->GetZeDMDWiFiAddr() : "zedmd-wifi.local";
uint16_t udpPortNumber = pConfig->GetZeDMDWiFiPort() > 0 ? pConfig->GetZeDMDWiFiPort() : 3333;

if (WiFiAddr.empty())
{
DMDUtil::Log(DMDUtil_LogLevel_ERROR, "ERROR: ZeDMD WiFi IP address is not configured.");
}

// Proceed only if the WiFiAddr is valid.
if (!WiFiAddr.empty() && (openWiFi = pZeDMD->OpenWiFi(WiFiAddr.c_str(), udpPortNumber)))
if (!WiFiAddr.empty() && (openWiFi = pZeDMD->OpenWiFi(WiFiAddr.c_str())))
{
std::stringstream logMessage;
logMessage << "ZeDMD WiFi enabled, connected to " << WiFiAddr << ":" << udpPortNumber << ".";
logMessage << "ZeDMD WiFi enabled, connected to " << WiFiAddr << ".";
DMDUtil::Log(DMDUtil_LogLevel_INFO, logMessage.str().c_str());
}
}
Expand Down

0 comments on commit ba24ea9

Please sign in to comment.