Start request sequence numbers at 1
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
a47cd2c412
commit
cb0ed6a1df
1 changed files with 1 additions and 1 deletions
|
@ -1481,7 +1481,7 @@ extern "C" rmw_ret_t rmw_send_request (const rmw_client_t *client, const void *r
|
||||||
auto info = static_cast<CddsClient *> (client->data);
|
auto info = static_cast<CddsClient *> (client->data);
|
||||||
cdds_request_header_t header;
|
cdds_request_header_t header;
|
||||||
header.guid = info->client.pub->pubiid;
|
header.guid = info->client.pub->pubiid;
|
||||||
header.seq = *sequence_id = next_request_id++;
|
header.seq = *sequence_id = ++next_request_id;
|
||||||
return rmw_send_response_request (&info->client, header, ros_request);
|
return rmw_send_response_request (&info->client, header, ros_request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue