Configurable priority in high-level protocol logic classes

This commit is contained in:
Pavel Kirienko
2015-07-05 09:54:54 +03:00
parent f48c16d1ef
commit 35fd634282
9 changed files with 19 additions and 15 deletions
+2 -3
View File
@@ -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;
}