From cd16b37ca3378369fee599121b45ed9f2a95dc2c Mon Sep 17 00:00:00 2001 From: lumapu Date: Sun, 11 Aug 2024 02:29:22 +0200 Subject: [PATCH] 0.8.134 fix compile error --- src/web/RestApi.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/web/RestApi.h b/src/web/RestApi.h index 463ef495..93a5cb77 100644 --- a/src/web/RestApi.h +++ b/src/web/RestApi.h @@ -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 @@ -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) {