Fix ESP32 AP information

This commit is contained in:
Theo Arends 2020-06-17 10:39:05 +02:00
parent 4b092d132b
commit a1d8fa755c
1 changed files with 1 additions and 1 deletions

View File

@ -2508,7 +2508,7 @@ void HandleInformation(void)
WSContentSend_P(PSTR("}1" D_SUBNET_MASK "}2%s"), IPAddress(Settings.ip_address[2]).toString().c_str());
WSContentSend_P(PSTR("}1" D_DNS_SERVER "}2%s"), IPAddress(Settings.ip_address[3]).toString().c_str());
}
if (static_cast<uint32_t>(WiFi.softAPIP()) != 0) {
if ((WiFi.getMode() >= WIFI_AP) && (static_cast<uint32_t>(WiFi.softAPIP()) != 0)) {
WSContentSend_P(PSTR("}1<hr/>}2<hr/>"));
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), WiFi.softAPmacAddress().c_str());
WSContentSend_P(PSTR("}1" D_IP_ADDRESS " (AP)}2%s"), WiFi.softAPIP().toString().c_str());