forked from h2zero/esp-nimble-cpp
Fix commit 8fe2766
in scan start.
Scan start would return false when the return code was BLE_HS_EALREADY.
This commit is contained in:
@ -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