mirror of https://github.com/ARMmbed/mbed-os.git
Wrap call to value handle getter in MBED_ASSERT
parent
aaf9435f87
commit
52483f3e30
|
@ -1735,7 +1735,7 @@ void GattServer::handleEvent(
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case GattServerEvents::GATT_EVENT_UPDATES_ENABLED:
|
case GattServerEvents::GATT_EVENT_UPDATES_ENABLED:
|
||||||
tr_info("Updates enabled for attribute %d on connection %d", attributeHandle, connHandle);
|
tr_info("Updates enabled for attribute %d on connection %d", attributeHandle, connHandle);
|
||||||
get_value_handle_by_cccd_handle(attributeHandle, charHandle);
|
MBED_ASSERT(get_value_handle_by_cccd_handle(attributeHandle, charHandle));
|
||||||
if(eventHandler) {
|
if(eventHandler) {
|
||||||
GattUpdatesEnabledCallbackParams params({
|
GattUpdatesEnabledCallbackParams params({
|
||||||
.connHandle = connHandle,
|
.connHandle = connHandle,
|
||||||
|
@ -1752,7 +1752,7 @@ void GattServer::handleEvent(
|
||||||
break;
|
break;
|
||||||
case GattServerEvents::GATT_EVENT_UPDATES_DISABLED:
|
case GattServerEvents::GATT_EVENT_UPDATES_DISABLED:
|
||||||
tr_info("Updates disabled for attribute %d on connection %d", attributeHandle, connHandle);
|
tr_info("Updates disabled for attribute %d on connection %d", attributeHandle, connHandle);
|
||||||
get_value_handle_by_cccd_handle(attributeHandle, charHandle);
|
MBED_ASSERT(get_value_handle_by_cccd_handle(attributeHandle, charHandle));
|
||||||
if(eventHandler) {
|
if(eventHandler) {
|
||||||
GattUpdatesDisabledCallbackParams params({
|
GattUpdatesDisabledCallbackParams params({
|
||||||
.connHandle = connHandle,
|
.connHandle = connHandle,
|
||||||
|
|
Loading…
Reference in New Issue