From dd731fa70c7466595cb433cf92f164b27f5b5845 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Fri, 13 Nov 2015 08:04:40 -0800 Subject: [PATCH] fix wifi scan off-by-one issue, #44 --- html/wifi/wifi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/wifi/wifi.js b/html/wifi/wifi.js index 0024248..d99be55 100644 --- a/html/wifi/wifi.js +++ b/html/wifi/wifi.js @@ -56,7 +56,7 @@ function scanResult() { scanReqCnt += 1; ajaxJson('GET', "scan", function(data) { currAp = getSelectedEssid(); - if (data.result.inProgress == "0" && data.result.APs.length > 1) { + if (data.result.inProgress == "0" && data.result.APs.length > 0) { $("#aps").innerHTML = ""; var n = 0; for (var i=0; i