mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Initialize the pal in GenericSecurityManager
parent
bd7be3d643
commit
36ca6be69a
|
@ -86,3 +86,5 @@ tags
|
|||
|
||||
# Visual Studio Code
|
||||
.vscode/
|
||||
|
||||
features/FEATURE_BLE/targets/TARGET_CORDIO/stack_backup/
|
||||
|
|
|
@ -39,6 +39,11 @@ ble_error_t GenericSecurityManager::init(
|
|||
const Passkey_t passkey,
|
||||
bool signing
|
||||
) {
|
||||
ble_error_t err = _pal.initialize();
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
|
||||
_db.restore();
|
||||
_pal.set_io_capability((io_capability_t::type) iocaps);
|
||||
|
||||
|
@ -73,6 +78,7 @@ ble_error_t GenericSecurityManager::init(
|
|||
|
||||
ble_error_t GenericSecurityManager::reset(void) {
|
||||
_db.sync();
|
||||
_pal.reset();
|
||||
SecurityManager::reset();
|
||||
|
||||
return BLE_ERROR_NONE;
|
||||
|
|
Loading…
Reference in New Issue