Update NimBLE fix memory leak

This commit is contained in:
Just Call Me Koko
2024-11-23 13:34:16 -05:00
parent d9dbcc85d3
commit 6fe012af29
3 changed files with 3 additions and 6 deletions

View File

@@ -830,6 +830,7 @@ bool WiFiScan::shutdownWiFi() {
bool WiFiScan::shutdownBLE() {
#ifdef HAS_BT
if (this->ble_initialized) {
Serial.println("Shutting down BLE");
pAdvertising->stop();
pBLEScan->stop();
@@ -2083,12 +2084,8 @@ void WiFiScan::executeSpoofAirtag() {
convertMacStringToUint8(airtags->get(i).mac, macAddr);
//macAddr[0] = 0x02;
macAddr[5] -= 2;
Serial.println("Using MAC: " + macToString(macAddr));
// Do this because ESP32 BT addr is Base MAC + 2
this->setBaseMacAddress(macAddr);