Fix commit 8fe2766 in scan start.

Scan start would return false when the return code was BLE_HS_EALREADY.
This commit is contained in:
h2zero 2021-01-12 21:25:30 -07:00
parent 372c79a6b8
commit 57ba0e583d

View file

@ -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;