microbit: Update to indicate when system attributes require intialisation

This commit is contained in:
Joe Finney 2016-02-11 22:01:37 +00:00
parent 0963f913e0
commit 67d0ac737d
1 changed files with 6 additions and 2 deletions

View File

@ -422,8 +422,12 @@ void nRF5xGattServer::hwCallback(ble_evt_t *p_ble_evt)
}
case BLE_GATTS_EVT_SYS_ATTR_MISSING:
sd_ble_gatts_sys_attr_set(gattsEventP->conn_handle, NULL, 0, 0);
case BLE_GAP_EVT_CONN_SEC_UPDATE:
{
GattSysAttrMissingCallbackParams cbParams = {gattsEventP->conn_handle};
handleSysAttrMissingEvent(&cbParams);
return;
}
case BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST:
switch (gattsEventP->params.authorize_request.type) {