Skip to content

Commit ac1cb53

Browse files
committed
SocketHelpers: fix macAddress(uint8_t* mac) reversed order
1 parent 8a96de0 commit ac1cb53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/src/SocketHelpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ uint8_t* arduino::MbedSocketClass::macAddress(uint8_t* mac) {
55
for (int b = 0; b < 6; b++) {
66
uint32_t tmp;
77
sscanf(&mac_str[b * 2 + (b)], "%02x", (unsigned int*)&tmp);
8-
mac[5 - b] = (uint8_t)tmp;
8+
mac[b] = (uint8_t)tmp;
99
}
1010
return mac;
1111
}

0 commit comments

Comments
 (0)