diff --git a/esp32_marauder/WiFiScan.cpp b/esp32_marauder/WiFiScan.cpp index ff6e1f3..e4789b4 100644 --- a/esp32_marauder/WiFiScan.cpp +++ b/esp32_marauder/WiFiScan.cpp @@ -3036,7 +3036,11 @@ void WiFiScan::executeWarDrive() { delay(500); } - int n = WiFi.scanNetworks(false, true, false, 110, this->set_channel); + #ifndef HAS_DUAL_BAND + int n = WiFi.scanNetworks(false, true, false, 110, this->set_channel); + #else + int n = WiFi.scanNetworks(false, true, false, 110); + #endif if (n > 0) { for (int i = 0; i < n; i++) { @@ -7548,7 +7552,7 @@ void WiFiScan::main(uint32_t currentTime) #endif } else if (currentScanMode == WIFI_SCAN_WAR_DRIVE) { - if (currentTime - initTime >= this->channel_hop_delay * 1000) + if (currentTime - initTime >= this->channel_hop_delay * HOP_DELAY) { initTime = millis(); #ifdef HAS_GPS