Skip to content

Commit 786d831

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 2fee252 commit 786d831

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

cores/esp32/IPAddress.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void IPAddress::to_ip_addr_t(ip_addr_t *addr) const {
406406
addr->u_addr.ip4.addr = _address.dword[IPADDRESS_V4_DWORD_INDEX];
407407
}
408408
#else
409-
addr->addr = _address.dword[IPADDRESS_V4_DWORD_INDEX];
409+
addr->addr = _address.dword[IPADDRESS_V4_DWORD_INDEX];
410410
#endif
411411
}
412412

@@ -428,7 +428,7 @@ IPAddress &IPAddress::from_ip_addr_t(const ip_addr_t *addr) {
428428
#if CONFIG_LWIP_IPV6
429429
_address.dword[IPADDRESS_V4_DWORD_INDEX] = addr->u_addr.ip4.addr;
430430
#else
431-
_address.dword[IPADDRESS_V4_DWORD_INDEX] = addr->addr;
431+
_address.dword[IPADDRESS_V4_DWORD_INDEX] = addr->addr;
432432
#endif
433433
#if CONFIG_LWIP_IPV6
434434
}

libraries/AsyncUDP/src/AsyncUDP.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ AsyncUDPPacket::AsyncUDPPacket(AsyncUDP *udp, pbuf *pb, const ip_addr_t *raddr,
347347
_localIp.u_addr.ip4.addr = iphdr->dest.addr;
348348
_remoteIp.u_addr.ip4.addr = iphdr->src.addr;
349349
#else
350-
_localIp.addr = iphdr->dest.addr;
351-
_remoteIp.addr = iphdr->src.addr;
350+
_localIp.addr = iphdr->dest.addr;
351+
_remoteIp.addr = iphdr->src.addr;
352352
#endif
353353
#if CONFIG_LWIP_IPV6
354354
} else {

libraries/Network/src/NetworkServer.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ bool NetworkServer::hasClient() {
136136
return true;
137137
}
138138
#if CONFIG_LWIP_IPV6
139-
struct sockaddr_in6 _client;
140-
int cs = sizeof(struct sockaddr_in6);
139+
struct sockaddr_in6 _client;
140+
int cs = sizeof(struct sockaddr_in6);
141141
#else
142-
struct sockaddr _client;
143-
int cs = sizeof(struct sockaddr);
142+
struct sockaddr _client;
143+
int cs = sizeof(struct sockaddr);
144144
#endif
145145
#ifdef ESP_IDF_VERSION_MAJOR
146146
_accepted_sockfd = lwip_accept(sockfd, (struct sockaddr *)&_client, (socklen_t *)&cs);

libraries/Network/src/NetworkUdp.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,7 @@ int NetworkUDP::parsePacket() {
338338
remote_ip.from_ip_addr_t(&addr);
339339
}
340340
remote_port = ntohs(si_other.sin6_port);
341-
}
342-
else {
341+
} else {
343342
remote_ip = ip_addr_any.u_addr.ip4.addr;
344343
remote_port = 0;
345344
}

0 commit comments

Comments
 (0)