Unverified Commit 795968a8 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Clean up WIFI local variable MAC size (#2006)

MACs are 6-bytes long, not 8.
parent 01ab02d0
......@@ -154,7 +154,7 @@ public:
}
String softAPmacAddress(void) {
uint8_t mac[8];
uint8_t mac[6];
macAddress(mac);
char buff[32];
sprintf(buff, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
......@@ -240,7 +240,7 @@ public:
*/
uint8_t* macAddress(uint8_t* mac);
String macAddress(void) {
uint8_t mac[8];
uint8_t mac[6];
macAddress(mac);
char buff[32];
sprintf(buff, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment