File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments