if (ret != BLUETOOTH_ERROR_NONE) {
BT_ERR("Failed to discover CCCD for OACP Control point");
- bluetooth_gatt_free_desc_property(&desc_property);
return ret;
}
if (otp_client_s->otp_oacp_control_point)
BT_DBG("OACP Control point handle [%s]", otp_client_s->otp_oacp_control_point);
BT_DBG("OACP Control point CCCD handle [%s]", otp_client_s->otp_oacp_cccd);
+ bluetooth_gatt_free_desc_property(&desc_property);
return ret;
}
if (ret != BLUETOOTH_ERROR_NONE) {
BT_ERR("Failed to discover CCCD for OLCP Control point");
- bluetooth_gatt_free_desc_property(&desc_property);
return ret;
}
if (otp_client_s->otp_olcp_control_point)
BT_DBG("OLCP Control point handle [%s]", otp_client_s->otp_olcp_control_point);
BT_DBG("OLCP Control point CCCD handle [%s]", otp_client_s->otp_olcp_cccd);
+ bluetooth_gatt_free_desc_property(&desc_property);
return ret;
}
if (ret != BLUETOOTH_ERROR_NONE) {
BT_ERR("Failed to discover CCCD for Object Changed Charc");
- bluetooth_gatt_free_desc_property(&desc_property);
return ret;
}
BT_DBG("OTP Object Changed handle [%s]", otp_client_s->otp_obj_changed_obj_path);
BT_DBG("OTP Object Changed CCCD handle [%s]", otp_client_s->otp_obj_changed_cccd);
+ bluetooth_gatt_free_desc_property(&desc_property);
return ret;
}
ret = bt_adapter_le_set_advertising_device_name(advertiser,
BT_ADAPTER_LE_PACKET_SCAN_RESPONSE, true);
- if (ret != BT_ERROR_NONE) {
+ if (ret != BT_ERROR_NONE)
TC_PRT("set device name [0x%04x]", ret);
- return 0;
- }
+ return 0;
default:
TC_PRT("No adv data");
break;