Skip to content

Commit 2eb5974

Browse files
Verbose
1 parent d3d76a1 commit 2eb5974

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

esp32_marauder/WiFiScan.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,8 @@ void WiFiScan::RunSetup() {
17621762

17631763
this->shutdownBLE();
17641764

1765+
Serial.println("Initializing WiFi...");
1766+
17651767
esp_wifi_init(&cfg);
17661768
#ifdef HAS_IDF_3
17671769
esp_wifi_set_country(&country);
@@ -1773,7 +1775,9 @@ void WiFiScan::RunSetup() {
17731775
esp_wifi_get_mac(WIFI_IF_STA, this->sta_mac);
17741776
delay(10);
17751777
esp_wifi_get_mac(WIFI_IF_AP, this->ap_mac);
1778+
Serial.println("Setting MAC...");
17761779
this->setMac();
1780+
Serial.println("Shutting down WiFi...");
17771781
this->shutdownWiFi();
17781782
#endif
17791783

@@ -2360,6 +2364,10 @@ bool WiFiScan::shutdownBLE() {
23602364

23612365
pBLEScan->clearResults();
23622366

2367+
delay(100);
2368+
2369+
Serial.println("Deinitializing NimBLE...");
2370+
23632371
//#ifndef HAS_DUAL_BAND
23642372
NimBLEDevice::deinit();
23652373
//#endif

0 commit comments

Comments
 (0)