Skip to content

Commit

Permalink
Fix warning in WifiUdp
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored Nov 21, 2023
1 parent 23fa1f8 commit a78841a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFiUdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void WiFiUDP::stop(){
for (netif* intf = netif_list; intf != nullptr; intf = intf->next) {
mreq.ipv6mr_interface = intf->num + 1;
if (intf->name[0] != 'l' || intf->name[1] != 'o') { // skip 'lo' local interface
int ret = setsockopt(udp_server, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq));
setsockopt(udp_server, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq));
}
}
} else
Expand Down

0 comments on commit a78841a

Please sign in to comment.