Fix WifiUDP::beginMulticastPacket()

Fixes: https://github.com/espressif/arduino-esp32/issues/304

Thanks @jliegner :)
This commit is contained in:
Me No Dev 2017-04-11 00:08:18 +03:00 committed by GitHub
parent 2b075f3204
commit 6519a35799

View File

@ -123,8 +123,8 @@ void WiFiUDP::stop(){
int WiFiUDP::beginMulticastPacket(){ int WiFiUDP::beginMulticastPacket(){
if(!server_port || multicast_ip == IPAddress(INADDR_ANY)) if(!server_port || multicast_ip == IPAddress(INADDR_ANY))
return 0; return 0;
remote_ip = server_port; remote_ip = multicast_ip;
remote_port = multicast_ip; remote_port = server_port;
return beginPacket(); return beginPacket();
} }