Skip to content

Commit 52483f3

Browse files
author
Abbas Bracken Ziad
committed
Wrap call to value handle getter in MBED_ASSERT
1 parent aaf9435 commit 52483f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectivity/FEATURE_BLE/source/cordio/source/GattServerImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ void GattServer::handleEvent(
17351735
switch (type) {
17361736
case GattServerEvents::GATT_EVENT_UPDATES_ENABLED:
17371737
tr_info("Updates enabled for attribute %d on connection %d", attributeHandle, connHandle);
1738-
get_value_handle_by_cccd_handle(attributeHandle, charHandle);
1738+
MBED_ASSERT(get_value_handle_by_cccd_handle(attributeHandle, charHandle));
17391739
if(eventHandler) {
17401740
GattUpdatesEnabledCallbackParams params({
17411741
.connHandle = connHandle,
@@ -1752,7 +1752,7 @@ void GattServer::handleEvent(
17521752
break;
17531753
case GattServerEvents::GATT_EVENT_UPDATES_DISABLED:
17541754
tr_info("Updates disabled for attribute %d on connection %d", attributeHandle, connHandle);
1755-
get_value_handle_by_cccd_handle(attributeHandle, charHandle);
1755+
MBED_ASSERT(get_value_handle_by_cccd_handle(attributeHandle, charHandle));
17561756
if(eventHandler) {
17571757
GattUpdatesDisabledCallbackParams params({
17581758
.connHandle = connHandle,

0 commit comments

Comments
 (0)