mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01: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:
parent
372c79a6b8
commit
57ba0e583d
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ bool NimBLEScan::start(uint32_t duration, void (*scanCompleteCB)(NimBLEScanResul
|
||||||
m_ignoreResults = false;
|
m_ignoreResults = false;
|
||||||
NIMBLE_LOGD(LOG_TAG, "<< start()");
|
NIMBLE_LOGD(LOG_TAG, "<< start()");
|
||||||
|
|
||||||
if(rc != 0 || rc != BLE_HS_EALREADY) {
|
if(rc != 0 && rc != BLE_HS_EALREADY) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue