mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2026-04-29 02:03:21 +02:00
Fix commit 8fe2766 in scan start.
Scan start would return false when the return code was BLE_HS_EALREADY.
This commit is contained in:
+1
-1
@@ -304,7 +304,7 @@ bool NimBLEScan::start(uint32_t duration, void (*scanCompleteCB)(NimBLEScanResul
|
||||
m_ignoreResults = false;
|
||||
NIMBLE_LOGD(LOG_TAG, "<< start()");
|
||||
|
||||
if(rc != 0 || rc != BLE_HS_EALREADY) {
|
||||
if(rc != 0 && rc != BLE_HS_EALREADY) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user