Modify nRF5xGap::reset() to reset the whitelist

This commit is contained in:
Andres Amaya Garcia 2016-01-08 15:33:19 +00:00
parent bdf392d471
commit 91e8bf4bb2

View file

@ -440,6 +440,13 @@ ble_error_t nRF5xGap::reset(void)
/* Clear derived class members */
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;
}