We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e73db5a commit f1625f8Copy full SHA for f1625f8
connectivity/FEATURE_BLE/source/cordio/source/GattServerImpl.cpp
@@ -931,9 +931,8 @@ void GattServer::cccd_cb(attsCccEvt_t *evt)
931
void GattServer::att_cb(const attEvt_t *evt)
932
{
933
if (evt->hdr.status == ATT_SUCCESS && evt->hdr.event == ATT_MTU_UPDATE_IND) {
934
- ble::GattServer::EventHandler *handler = getInstance().getEventHandler();
935
- if (handler) {
936
- handler->onAttMtuChange(evt->hdr.param, evt->mtu);
+ if (eventHandler) {
+ eventHandler->onAttMtuChange(evt->hdr.param, evt->mtu);
937
}
938
} else if (evt->hdr.status == ATT_SUCCESS && evt->hdr.event == ATTS_HANDLE_VALUE_CNF) {
939
getInstance().handleEvent(GattServerEvents::GATT_EVENT_DATA_SENT, evt->hdr.param, evt->handle);
0 commit comments