Modify nRF5xGap::reset() to reset the whitelist
This commit is contained in:
parent
bdf392d471
commit
91e8bf4bb2
|
@ -440,6 +440,13 @@ ble_error_t nRF5xGap::reset(void)
|
||||||
/* Clear derived class members */
|
/* Clear derived class members */
|
||||||
m_connectionHandle = BLE_CONN_HANDLE_INVALID;
|
m_connectionHandle = BLE_CONN_HANDLE_INVALID;
|
||||||
|
|
||||||
|
/* Set the whitelist policy filter modes to IGNORE_WHITELIST */
|
||||||
|
advertisingPolicyMode = Gap::ADV_POLICY_IGNORE_WHITELIST;
|
||||||
|
scanningPolicyMode = Gap::SCAN_POLICY_IGNORE_WHITELIST;
|
||||||
|
|
||||||
|
/* Clear the internal whitelist */
|
||||||
|
whitelistAddressesSize = 0;
|
||||||
|
|
||||||
return BLE_ERROR_NONE;
|
return BLE_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue