mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 13:43:34 +08:00
allowRogueTransfers() exposed in Publisher and Subscriber
This commit is contained in:
@@ -60,6 +60,15 @@ public:
|
||||
MonotonicDuration getTxTimeout() const { return tx_timeout_; }
|
||||
void setTxTimeout(MonotonicDuration tx_timeout);
|
||||
|
||||
/**
|
||||
* By default, attempt to send a transfer from passive mode will result in an error @ref ErrPassive.
|
||||
* This option allows to enable sending rogue transfers from passive mode.
|
||||
*/
|
||||
void allowRogueTransfers()
|
||||
{
|
||||
sender_->allowRogueTransfers();
|
||||
}
|
||||
|
||||
INode& getNode() const { return node_; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user