apps/bttester: Fix change_database
This method is used to issue service change notification and
we don't need to actually change the database to end that.
@@ -1672,15 +1672,9 @@ free:
static void change_database(u8_t *data, u16_t len)
{
const struct gatt_change_database *cmd = (void *) data;
- int rc;
SYS_LOG_DBG("")
- rc = ble_gatts_svc_set_visibility(cmd->start_handle, cmd->visibility);
- if (rc) {
- goto fail;
- }
-
ble_gatts_show_local();
ble_svc_gatt_changed(cmd->start_handle, cmd->end_handle);
@@ -1689,10 +1683,6 @@ static void change_database(u8_t *data, u16_t len)
BTP_STATUS_SUCCESS);
return;
-
-fail:
- tester_rsp(BTP_SERVICE_ID_GATT, GATT_CHANGE_DATABASE, CONTROLLER_INDEX,
- BTP_STATUS_FAILED);
}
static void supported_commands(u8_t *data, u16_t len)
