/* Triggers a pending transmit for the specified find-included-services proc.  */
static int ble_gattc_find_inc_svcs_tx(struct ble_gattc_proc *proc)
/* Triggers a pending transmit for the specified find-included-services proc.  */
static int ble_gattc_find_inc_svcs_tx(struct ble_gattc_proc *proc)
{
    ble_uuid16_t uuid = BLE_UUID16_INIT(BLE_ATT_UUID_INCLUDE);
    int rc;
    ble_gattc_dbg_assert_proc_not_inserted(proc);
    if (proc->find_inc_svcs.cur_start == 0) {
        rc = ble_att_clt_tx_read_type(proc->conn_handle,
                                      proc->find_inc_svcs.prev_handle + 1,
                                      proc->find_inc_svcs.end_handle, &uuid.u);
        if (rc != 0) {
            return rc;
        }
    } else {
        rc = ble_att_clt_tx_read(proc->conn_handle,
                                 proc->find_inc_svcs.cur_start);
        if (rc != 0) {
            return rc;
        }
    }
    return 0;
}