Skip to content

Commit 6a3c0e2

Browse files
authored
rm if(1)
1 parent 7a6d378 commit 6a3c0e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ uint8_t WiFiUDP::begin(IPAddress address, uint16_t port){
8080
sock_size = sizeof(sockaddr_in6);
8181
} else
8282
#endif
83-
if (1) {
83+
{
8484
struct sockaddr_in *tmpaddr = (struct sockaddr_in *)&serveraddr;
8585
memset((char *) tmpaddr, 0, sizeof(struct sockaddr_in));
8686
tmpaddr->sin_family = AF_INET;
@@ -127,7 +127,7 @@ uint8_t WiFiUDP::beginMulticast(IPAddress a, uint16_t p){
127127
}
128128
} else
129129
#endif
130-
if (1) {
130+
{
131131
struct ip_mreq mreq;
132132
mreq.imr_multiaddr.s_addr = (in_addr_t)a;
133133
mreq.imr_interface.s_addr = INADDR_ANY;
@@ -173,7 +173,7 @@ void WiFiUDP::stop(){
173173
}
174174
} else
175175
#endif
176-
if (1) {
176+
{
177177
struct ip_mreq mreq;
178178
mreq.imr_multiaddr.s_addr = (in_addr_t)multicast_ip;
179179
mreq.imr_interface.s_addr = (in_addr_t)0;

0 commit comments

Comments
 (0)