We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a96de0 commit ac1cb53Copy full SHA for ac1cb53
libraries/SocketWrapper/src/SocketHelpers.cpp
@@ -5,7 +5,7 @@ uint8_t* arduino::MbedSocketClass::macAddress(uint8_t* mac) {
5
for (int b = 0; b < 6; b++) {
6
uint32_t tmp;
7
sscanf(&mac_str[b * 2 + (b)], "%02x", (unsigned int*)&tmp);
8
- mac[5 - b] = (uint8_t)tmp;
+ mac[b] = (uint8_t)tmp;
9
}
10
return mac;
11
0 commit comments