From a8feb40ae9a7d354fbc1278a213bd8ed583006bc Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Mon, 24 May 2021 09:42:25 +0800 Subject: [PATCH] cleanup --- src/mesh/http/WiFiAPClient.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesh/http/WiFiAPClient.cpp b/src/mesh/http/WiFiAPClient.cpp index 945cbfd1d..6cccd6acc 100644 --- a/src/mesh/http/WiFiAPClient.cpp +++ b/src/mesh/http/WiFiAPClient.cpp @@ -32,7 +32,7 @@ bool isWifiAvailable() { // If wifi status is connected, return true regardless of the radio configuration. if (isSoftAPForced()) { - return 1; + return true; } const char *wifiName = radioConfig.preferences.wifi_ssid; @@ -47,9 +47,9 @@ bool isWifiAvailable() // radioConfig.preferences.wifi_ap_mode = false; if (*wifiName) { - return 1; + return true; } else { - return 0; + return false; } }