Explorar o código

Fixed scan after spam

Just Call Me Koko %!s(int64=6) %!d(string=hai) anos
pai
achega
2c2f59f4c3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      esp32_marauder/WiFiScan.cpp

+ 3 - 0
esp32_marauder/WiFiScan.cpp

@@ -138,7 +138,10 @@ void WiFiScan::StopScan(uint8_t scan_mode)
   (currentScanMode == WIFI_SCAN_ST) ||
   (currentScanMode == WIFI_SCAN_ALL) ||
   (currentScanMode == WIFI_ATTACK_BEACON_SPAM))
+  {
     esp_wifi_set_promiscuous(false);
+    WiFi.mode(WIFI_OFF);
+  }
     
   else if ((currentScanMode == BT_SCAN_ALL) ||
   (currentScanMode == BT_SCAN_SKIMMERS))