mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-22 07:10:47 -08:00
Update NimBLE fix memory leak
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user