main.cpp: bugfix wifi start

This commit is contained in:
Verkehrsrot 2020-12-11 12:39:25 +01:00 committed by GitHub
parent 6bf43cc921
commit d048b759a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ void setup() {
// start wifi in monitor mode and start channel rotation timer // start wifi in monitor mode and start channel rotation timer
wifi_sniffer_init(); wifi_sniffer_init();
if (cfg.blescan) { if (cfg.wifiscan) {
ESP_LOGI(TAG, "Starting Wifi..."); ESP_LOGI(TAG, "Starting Wifi...");
switch_wifi_sniffer(1); switch_wifi_sniffer(1);
} else } else
@ -526,4 +526,4 @@ void setup() {
} // setup() } // setup()
void loop() { vTaskDelete(NULL); } void loop() { vTaskDelete(NULL); }