Skip to content

Commit

Permalink
0.8.134
Browse files Browse the repository at this point in the history
fix compile error
  • Loading branch information
lumapu committed Aug 11, 2024
1 parent 57dd70b commit cd16b37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/web/RestApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ class RestApi {
bool isWired = mApp->isWiredConnection();
if(!isWired)
obj[F("wifi_channel")] = WiFi.channel();

obj[F("wired")] = isWired;
#else
obj[F("wifi_channel")] = WiFi.channel();
#endif
Expand All @@ -814,10 +816,6 @@ class RestApi {
obj[F("hidd")] = mConfig->sys.isHidden;
obj[F("mac")] = mApp->getMac();
obj[F("ip")] = mApp->getIp();

#if defined(ESP32)
obj[F("wired")] = isWired;
#endif
}

void getChipInfo(JsonObject obj) {
Expand Down

0 comments on commit cd16b37

Please sign in to comment.