BLE - restrict AttConnRegister to GattServer.

pull/9790/head
Vincent Coubard 2019-02-28 14:12:56 +00:00
parent 9566af64fb
commit ea9554dfbc
1 changed files with 1 additions and 1 deletions

View File

@ -512,10 +512,10 @@ void BLE::stack_setup()
#endif
#if BLE_FEATURE_ATT
AttConnRegister(BLE::connection_handler);
#if BLE_FEATURE_GATT_CLIENT
AttRegister((attCback_t) ble::pal::vendor::cordio::CordioAttClient::att_client_handler);
#else
AttConnRegister(BLE::connection_handler);
AttRegister((attCback_t) ble::vendor::cordio::GattServer::att_cb);
#endif // BLE_FEATURE_GATT_CLIENT
#endif