Skip to content

Commit 5a0a7d5

Browse files
Fixed printTo
Chars must be uppercase to match toString() and pass test
1 parent 2816fc6 commit 5a0a7d5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cores/esp32/MacAddress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ size_t MacAddress::printTo(Print& p) const
129129
if(i){
130130
n += p.print(':');
131131
}
132-
n += p.printf("%02x", _mac.bytes[i]);
132+
n += p.printf("%02X", _mac.bytes[i]);
133133
}
134134
return n;
135135
}

cores/esp32/MacAddress8.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ size_t MacAddress8::printTo(Print& p) const
130130
if(i){
131131
n += p.print(':');
132132
}
133-
n += p.printf("%02x", _mac.bytes[i]);
133+
n += p.printf("%02X", _mac.bytes[i]);
134134
}
135135
return n;
136136
}

cores/esp32/MacAddress8.h

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class MacAddress8 : public Printable {
5252
operator uint64_t() const;
5353
operator const uint8_t*() const;
5454
operator const uint64_t*() const;
55+
5556
virtual size_t printTo(Print& p) const;
5657

5758
// future use in Arduino Networking

0 commit comments

Comments
 (0)