Odstranena nepouzivana cast. Vse se zda byt funkcni.

This commit is contained in:
Pavel Brychta 2018-12-12 10:02:39 +01:00
parent 48986510dd
commit d0e01c567c

View File

@ -706,12 +706,8 @@ wificonfigresult_t WiFiConfig::_setupAP(wificonfig_cb cb)
WiFi.softAPConfig(apIP, apIP, netMsk); WiFi.softAPConfig(apIP, apIP, netMsk);
if (ssid.endsWith(F("?"))) if (ssid.endsWith(F("?")))
{ {
//uint8_t amac[6];
char lmac[16]; char lmac[16];
//WiFi.softAPmacAddress(amac);
//sprintf_P(lmac, PSTR("%02X%02X%02X"), amac[3], amac[4], amac[5]);
sprintf_P(lmac, PSTR("%06X"), ESP_getChipId()); sprintf_P(lmac, PSTR("%06X"), ESP_getChipId());
ssid.replace(F("?"), String(lmac)); ssid.replace(F("?"), String(lmac));
} }