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)

This commit is contained in:
Thomas Göttgens
2022-09-23 15:10:33 -05:00
committed by GitHub
co-authored by GitHub
parent 2f74f9ca15
commit 18bb373219
+1 -6
View File
@@ -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;