mirror of https://github.com/ARMmbed/mbed-os.git
BLE - restrict AttConnRegister to GattServer.
parent
9566af64fb
commit
ea9554dfbc
|
@ -512,10 +512,10 @@ void BLE::stack_setup()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BLE_FEATURE_ATT
|
#if BLE_FEATURE_ATT
|
||||||
AttConnRegister(BLE::connection_handler);
|
|
||||||
#if BLE_FEATURE_GATT_CLIENT
|
#if BLE_FEATURE_GATT_CLIENT
|
||||||
AttRegister((attCback_t) ble::pal::vendor::cordio::CordioAttClient::att_client_handler);
|
AttRegister((attCback_t) ble::pal::vendor::cordio::CordioAttClient::att_client_handler);
|
||||||
#else
|
#else
|
||||||
|
AttConnRegister(BLE::connection_handler);
|
||||||
AttRegister((attCback_t) ble::vendor::cordio::GattServer::att_cb);
|
AttRegister((attCback_t) ble::vendor::cordio::GattServer::att_cb);
|
||||||
#endif // BLE_FEATURE_GATT_CLIENT
|
#endif // BLE_FEATURE_GATT_CLIENT
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue