sforkowany z mirror/meshtastic-firmware
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)
rodzic
2f74f9ca15
commit
18bb373219
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue