Skip to content

Commit 062c113

Browse files
Update MacAddress8.cpp
1 parent 848e030 commit 062c113

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/esp32/MacAddress8.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MacAddress8::MacAddress8(const uint8_t *macbytearray) {
1515
}
1616

1717
//Parse user entered string into MAC address
18-
bool MacAddress8::fromCStr(const char *buf) { //TODO test this!
18+
bool MacAddress8::fromCStr(const char *buf) {
1919
char cs[24];
2020
char *token;
2121
char *next; //Unused but required
@@ -24,11 +24,11 @@ bool MacAddress8::fromCStr(const char *buf) { //TODO test this!
2424
strncpy(cs, buf, sizeof(cs)); //strtok modifies the buffer: copy to working buffer.
2525

2626
for(i=0; i<sizeof(_mac.bytes); i++) {
27-
token = strtok( (i==0) ? cs : NULL, ":"); //Find first or next token
27+
token = strtok((i==0) ? cs : NULL, ":"); //Find first or next token
2828
if(!token) { //No more tokens found
2929
return false;
3030
}
31-
_mac.bytes[i] = strtol( token, &next, 16);
31+
_mac.bytes[i] = strtol(token, &next, 16);
3232
}
3333
return true;
3434
}
@@ -73,4 +73,4 @@ MacAddress8& MacAddress8::operator=(uint64_t macval)
7373
{
7474
_mac.val = macval;
7575
return *this;
76-
}
76+
}

0 commit comments

Comments
 (0)