Skip to content

Commit 779b527

Browse files
authored
Merge pull request esp8266#26 from andrbmgi/master
fix for APs > maxResults creating invalid json, resulting in empty APlist
2 parents 6042639 + 37b98f3 commit 779b527

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

esp8266_deauther/APScan.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ String APScan::getResults(){
7070
json += "\"vendor\": \""+getAPVendor(i)+"\",";
7171
json += "\"selected\": "+getAPSelected(i);
7272
json += "}";
73-
if(i!=results-1) json += ",";
73+
if((i!=results-1) && (i!=maxResults-1)) json += ",";
7474
}
7575
json += "] }";
7676
return json;

0 commit comments

Comments
 (0)