main.cpp: bugfix wifi start

This commit is contained in:
Verkehrsrot authored and GitHub committed 2020-12-11 12:39:25 +01:00
1 parent 6bf43cc921
commit d048b759a8
1 file changed
+2 -2
+2 -2
View File
@@ -417,7 +417,7 @@ void setup() {
// start wifi in monitor mode and start channel rotation timer
wifi_sniffer_init();
if (cfg.blescan) {
if (cfg.wifiscan) {
ESP_LOGI(TAG, "Starting Wifi...");
switch_wifi_sniffer(1);
} else
@@ -526,4 +526,4 @@ void setup() {
} // setup()
void loop() { vTaskDelete(NULL); }
void loop() { vTaskDelete(NULL); }