Skip to content

Commit d2e4791

Browse files
committed
Add MacAddress string constructor
1 parent 29ede48 commit d2e4791

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/MacAddress.h

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class MacAddress : public Printable {
5454
MacAddress(const uint8_t *macbytearray) : MacAddress(MAC6, macbytearray) {}
5555

5656
MacAddress(const char *macstr);
57+
MacAddress(const String &macstr) : MacAddress(macstr.c_str()) {}
5758

5859
virtual ~MacAddress() {}
5960

0 commit comments

Comments
 (0)