mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
0.8.134
fix compile error
This commit is contained in:
parent
57dd70bec9
commit
cd16b37ca3
1 changed files with 2 additions and 4 deletions
|
@ -805,6 +805,8 @@ class RestApi {
|
||||||
bool isWired = mApp->isWiredConnection();
|
bool isWired = mApp->isWiredConnection();
|
||||||
if(!isWired)
|
if(!isWired)
|
||||||
obj[F("wifi_channel")] = WiFi.channel();
|
obj[F("wifi_channel")] = WiFi.channel();
|
||||||
|
|
||||||
|
obj[F("wired")] = isWired;
|
||||||
#else
|
#else
|
||||||
obj[F("wifi_channel")] = WiFi.channel();
|
obj[F("wifi_channel")] = WiFi.channel();
|
||||||
#endif
|
#endif
|
||||||
|
@ -814,10 +816,6 @@ class RestApi {
|
||||||
obj[F("hidd")] = mConfig->sys.isHidden;
|
obj[F("hidd")] = mConfig->sys.isHidden;
|
||||||
obj[F("mac")] = mApp->getMac();
|
obj[F("mac")] = mApp->getMac();
|
||||||
obj[F("ip")] = mApp->getIp();
|
obj[F("ip")] = mApp->getIp();
|
||||||
|
|
||||||
#if defined(ESP32)
|
|
||||||
obj[F("wired")] = isWired;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void getChipInfo(JsonObject obj) {
|
void getChipInfo(JsonObject obj) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue