mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 23:33:35 +08:00
Configurable priority in high-level protocol logic classes
This commit is contained in:
@@ -94,14 +94,13 @@ public:
|
||||
* Must be called once before use.
|
||||
* Returns negative error code.
|
||||
*/
|
||||
int init(TransferPriority priority = TransferPriority::OneHigherThanLowest)
|
||||
int init(const TransferPriority priority = TransferPriority::Lowest)
|
||||
{
|
||||
const int res = logmsg_pub_.init();
|
||||
const int res = logmsg_pub_.init(priority);
|
||||
if (res < 0)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
logmsg_pub_.setPriority(priority); // Fixed priority
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user