提交 dffda0bd 编写于 作者: A A C SREEDHAR REDDY 提交者: Me No Dev

log no networks found when scanResult is 0 (#2484)

上级 2ceab7c2
...@@ -55,7 +55,7 @@ uint8_t WiFiMulti::run(uint32_t connectTimeout) ...@@ -55,7 +55,7 @@ uint8_t WiFiMulti::run(uint32_t connectTimeout)
if(scanResult == WIFI_SCAN_RUNNING) { if(scanResult == WIFI_SCAN_RUNNING) {
// scan is running // scan is running
return WL_NO_SSID_AVAIL; return WL_NO_SSID_AVAIL;
} else if(scanResult > 0) { } else if(scanResult >= 0) {
// scan done analyze // scan done analyze
WifiAPlist_t bestNetwork { NULL, NULL }; WifiAPlist_t bestNetwork { NULL, NULL };
int bestNetworkDb = INT_MIN; int bestNetworkDb = INT_MIN;
...@@ -64,7 +64,7 @@ uint8_t WiFiMulti::run(uint32_t connectTimeout) ...@@ -64,7 +64,7 @@ uint8_t WiFiMulti::run(uint32_t connectTimeout)
log_i("[WIFI] scan done"); log_i("[WIFI] scan done");
if(scanResult <= 0) { if(scanResult == 0) {
log_e("[WIFI] no networks found"); log_e("[WIFI] no networks found");
} else { } else {
log_i("[WIFI] %d networks found", scanResult); log_i("[WIFI] %d networks found", scanResult);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册