fix wifi scan off-by-one issue, #44

pull/69/head
Thorsten von Eicken 9 years ago
parent e429c0bb1c
commit dd731fa70c
  1. 2
      html/wifi/wifi.js

@ -56,7 +56,7 @@ function scanResult() {
scanReqCnt += 1; scanReqCnt += 1;
ajaxJson('GET', "scan", function(data) { ajaxJson('GET', "scan", function(data) {
currAp = getSelectedEssid(); currAp = getSelectedEssid();
if (data.result.inProgress == "0" && data.result.APs.length > 1) { if (data.result.inProgress == "0" && data.result.APs.length > 0) {
$("#aps").innerHTML = ""; $("#aps").innerHTML = "";
var n = 0; var n = 0;
for (var i=0; i<data.result.APs.length; i++) { for (var i=0; i<data.result.APs.length; i++) {

Loading…
Cancel
Save