BLE: Fix reference to security manager in Nordic event handler.

pull/6932/head
Vincent Coubard 2018-03-29 17:23:24 +01:00
parent 95cd37b491
commit 3218e79805
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ static void btle_handler(ble_evt_t *p_ble_evt)
nRF5xn &ble = nRF5xn::Instance(BLE::DEFAULT_INSTANCE);
nRF5xGap &gap = (nRF5xGap &) ble.getGap();
nRF5xGattServer &gattServer = (nRF5xGattServer &) ble.getGattServer();
nRF5xSecurityManager &securityManager = (nRF5xSecurityManager &) ble.getSecurityManager();
nRF5xSecurityManager &securityManager = nRF5xSecurityManager::get_security_manager();
/* Custom event handler */
switch (p_ble_evt->header.evt_id) {