Skip to content

Commit 4493418

Browse files
committed
Updated scanNetworks to carry settings
1 parent be158e3 commit 4493418

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

esp8266_deauther/APScan.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bool APScan::start(){
1111
}
1212
aps._clear();
1313
for(int i=0;i<maxAPScanResults;i++) selected[i] = false;
14-
results = WiFi.scanNetworks(false, true); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
14+
results = WiFi.scanNetworks(false, settings.apScanHidden); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
1515

1616
for(int i=0;i<results && i<maxAPScanResults;i++){
1717
Mac _ap;

esp8266_deauther/APScan.h

+3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
#include <ESP8266WiFi.h>
77
#include "Mac.h"
88
#include "MacList.h"
9+
#include "Settings.h"
910

1011
extern String data_getVendor(uint8_t first,uint8_t second,uint8_t third);
1112
extern const bool debug;
1213

14+
extern Settings settings;
15+
1316
class APScan{
1417
public:
1518
APScan();

0 commit comments

Comments
 (0)