mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 21:13:33 +08:00
ServiceServer sends response at the same priority as request
This commit is contained in:
@@ -139,6 +139,8 @@ private:
|
||||
|
||||
if (response.isResponseEnabled())
|
||||
{
|
||||
publisher_.setPriority(request.getPriority()); // Responding at the same priority.
|
||||
|
||||
const int res = publisher_.publish(response, TransferTypeServiceResponse, request.getSrcNodeID(),
|
||||
request.getTransferID());
|
||||
if (res < 0)
|
||||
|
||||
Reference in New Issue
Block a user