Skip to content

Commit

Permalink
SocketHelpers: fix macAddress(uint8_t* mac) reversed order
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Nov 6, 2024
1 parent b6bc4bf commit 89c7c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SocketWrapper/src/SocketHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ uint8_t* arduino::MbedSocketClass::macAddress(uint8_t* mac) {
for (int b = 0; b < 6; b++) {
uint32_t tmp;
sscanf(&mac_str[b * 2 + (b)], "%02x", (unsigned int*)&tmp);
mac[5 - b] = (uint8_t)tmp;
mac[b] = (uint8_t)tmp;
}
return mac;
}
Expand Down

0 comments on commit 89c7c9a

Please sign in to comment.