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

Diff for: cores/arduino/IPv6Address.cpp

+2-2
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)