mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-10 07:11:59 +00:00
cleanup
This commit is contained in:
parent
be410a3913
commit
a8feb40ae9
@ -32,7 +32,7 @@ bool isWifiAvailable()
|
|||||||
{
|
{
|
||||||
// If wifi status is connected, return true regardless of the radio configuration.
|
// If wifi status is connected, return true regardless of the radio configuration.
|
||||||
if (isSoftAPForced()) {
|
if (isSoftAPForced()) {
|
||||||
return 1;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *wifiName = radioConfig.preferences.wifi_ssid;
|
const char *wifiName = radioConfig.preferences.wifi_ssid;
|
||||||
@ -47,9 +47,9 @@ bool isWifiAvailable()
|
|||||||
// radioConfig.preferences.wifi_ap_mode = false;
|
// radioConfig.preferences.wifi_ap_mode = false;
|
||||||
|
|
||||||
if (*wifiName) {
|
if (*wifiName) {
|
||||||
return 1;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user