From 18bb37321932a85b29f943dde530d02d80a1cad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Fri, 23 Sep 2022 22:10:33 +0200 Subject: [PATCH] switch Bluetooth back on when wifi is disabled and bluetooth is enabled. This still had the old behaviour to check for a set ssid... (#1719) --- src/mesh/http/WiFiAPClient.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mesh/http/WiFiAPClient.cpp b/src/mesh/http/WiFiAPClient.cpp index db72cb76..b169f8ca 100644 --- a/src/mesh/http/WiFiAPClient.cpp +++ b/src/mesh/http/WiFiAPClient.cpp @@ -110,14 +110,9 @@ bool isSoftAPForced() bool isWifiAvailable() { - // If wifi status is connected, return true regardless of the radio configuration. - if (isSoftAPForced()) { - return true; - } - const char *wifiName = config.network.wifi_ssid; + if (config.network.wifi_enabled && ((config.network.wifi_ssid[0]) || forcedSoftAP)) { - if (*wifiName) { return true; } else { return false;