mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
Merge branch 'master' of github.com:meshtastic/Meshtastic-device
This commit is contained in:
commit
347af0210e
@ -110,14 +110,9 @@ bool isSoftAPForced()
|
|||||||
|
|
||||||
bool isWifiAvailable()
|
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;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user