Skip to content

Commit 0058c5f

Browse files
author
Virens
committed
add IPv6Address with IPV6
1 parent 6451fa1 commit 0058c5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/IPv6Address.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ size_t IPv6Address::printTo(Print &p) const
5151
{
5252
size_t n = 0;
5353
for (int i = 0; i < 16; i += 2) {
54-
if(i) {
54+
if (i) {
5555
n += p.print(':');
5656
}
5757
n += p.printf("%02x", _address.bytes[i]);
@@ -78,7 +78,7 @@ bool IPv6Address::fromString(const char *address)
7878
if (strlen(address) != 39) {
7979
return false;
8080
}
81-
char * pos = (char *)address;
81+
char *pos = (char *)address;
8282
size_t i = 0;
8383
for (i = 0; i < 16; i += 2) {
8484
if (!sscanf(pos, "%2hhx", &_address.bytes[i]) || !sscanf(pos + 2, "%2hhx", &_address.bytes[i + 1])) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy