mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 04:33:36 +08:00
Optional pre-initialization for GenericPublisher<>, TransferSender accessor
This commit is contained in:
@@ -79,6 +79,12 @@ public:
|
||||
}
|
||||
callback_ = callback;
|
||||
|
||||
const int publisher_res = publisher_.init();
|
||||
if (publisher_res < 0)
|
||||
{
|
||||
UAVCAN_TRACE("ServiceServer", "Publisher initialization failure: %i", publisher_res);
|
||||
return publisher_res;
|
||||
}
|
||||
return SubscriberType::startAsServiceRequestListener();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user