Arduino Core 3 Cleanup and Fixes (#415)

This commit is contained in:
iranl
2024-07-06 06:00:21 +02:00
committed by GitHub
parent 6b0100fd61
commit 894a4584cb
411 changed files with 65 additions and 171260 deletions

View File

@@ -32,7 +32,7 @@ void Scanner::initialize(const std::string& deviceName, const bool wantDuplicate
}
bleScan = BLEDevice::getScan();
#if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
#ifndef BLESCANNER_USE_LATEST_NIMBLE
bleScan->setAdvertisedDeviceCallbacks(this, wantDuplicates);
#else
bleScan->setScanCallbacks(this, wantDuplicates);
@@ -54,7 +54,7 @@ void Scanner::update() {
log_w("Ble scanner max results not 0. Be aware of memory issue due to unbridled growth of results vector");
}
#if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
#ifndef BLESCANNER_USE_LATEST_NIMBLE
bool result = bleScan->start(scanDuration, nullptr, false);
#else
bool result = bleScan->start(scanDuration * 1000, false);