Skip to content

Commit 8430373

Browse files
committed
Wrong side of the MAC address in ssid
1 parent 35ae292 commit 8430373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Update/examples/OTAWebUpdater/OTAWebUpdater.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void apMode() {
2424
WiFi.mode(WIFI_AP);
2525
char ssid[13];
2626
char passwd[11];
27-
uint32_t espmac = ESP.getEfuseMac() & 0xFFFFFF;
27+
uint32_t espmac = ESP.getEfuseMac() >> 16;
2828
snprintf(ssid, 13, SSID_FORMAT, espmac);
2929
#ifdef PASSWORD
3030
snprintf(passwd, 11, PASSWORD);

0 commit comments

Comments
 (0)