Skip to content

Commit 0b66f10

Browse files
committed
fix for APs > maxResults creating invalid json resulting in empty AP list
1 parent 6042639 commit 0b66f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp8266_deauther/APScan.cpp

Lines changed: 1 addition & 1 deletion
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)