mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2026-07-30 23:50:26 -07:00
Merge pull request #1072 from justcallmekoko/develop
Bluetooth can deinit on ESP32 C5
This commit is contained in:
@@ -4628,13 +4628,13 @@ void WiFiScan::executeSourApple() {
|
||||
delay(60);
|
||||
pAdvertising->stop();
|
||||
|
||||
#ifndef HAS_DUAL_BAND
|
||||
//#ifndef HAS_DUAL_BAND
|
||||
if ((now_time - this->last_sour_apple_update > 1000) || (this->last_sour_apple_update == 0)) {
|
||||
this->last_sour_apple_update = now_time;
|
||||
NimBLEDevice::deinit();
|
||||
this->ble_initialized = false;
|
||||
}
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
#endif
|
||||
}
|
||||
@@ -4683,9 +4683,9 @@ void WiFiScan::executeSpoofAirtag() {
|
||||
delay(10);
|
||||
pAdvertising->stop();
|
||||
|
||||
#ifndef HAS_DUAL_BAND
|
||||
//#ifndef HAS_DUAL_BAND
|
||||
NimBLEDevice::deinit();
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -4715,9 +4715,9 @@ void WiFiScan::executeSwiftpairSpam(EBLEPayloadType type) {
|
||||
delay(10);
|
||||
pAdvertising->stop();
|
||||
|
||||
#ifndef HAS_DUAL_BAND
|
||||
//#ifndef HAS_DUAL_BAND
|
||||
NimBLEDevice::deinit();
|
||||
#endif
|
||||
//#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user