Skip to content

Commit ea9554d

Browse files
committed
BLE - restrict AttConnRegister to GattServer.
1 parent 9566af6 commit ea9554d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,10 @@ void BLE::stack_setup()
512512
#endif
513513

514514
#if BLE_FEATURE_ATT
515-
AttConnRegister(BLE::connection_handler);
516515
#if BLE_FEATURE_GATT_CLIENT
517516
AttRegister((attCback_t) ble::pal::vendor::cordio::CordioAttClient::att_client_handler);
518517
#else
518+
AttConnRegister(BLE::connection_handler);
519519
AttRegister((attCback_t) ble::vendor::cordio::GattServer::att_cb);
520520
#endif // BLE_FEATURE_GATT_CLIENT
521521
#endif

0 commit comments

Comments
 (0)