Fixed broadcast IP compilation issue

This commit is contained in:
cschwinne 2019-02-12 11:03:54 +01:00
parent 9caca37ab1
commit b73a257389
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
//version code in format yymmddb (b = daily build)
#define VERSION 1902112
#define VERSION 1902121
char versionString[] = "0.8.3";

View File

@ -45,7 +45,7 @@ void notify(byte callMode, bool followUp=false)
udpOut[19] = effectPalette;
IPAddress broadcastIp;
broadcastIp = ~WiFi.subnetMask() | WiFi.gatewayIP();
broadcastIp = ~uint32_t(WiFi.subnetMask()) | uint32_t(WiFi.gatewayIP());
notifierUdp.beginPacket(broadcastIp, udpPort);
notifierUdp.write(udpOut, WLEDPACKETSIZE);