Support for priority in TransferSender

This commit is contained in:
Pavel Kirienko
2015-04-30 12:30:13 +03:00
parent 5c0314e187
commit 6b19bf09e2
3 changed files with 35 additions and 6 deletions
+1
View File
@@ -35,6 +35,7 @@ uint_fast8_t Frame::getMaxIndexForTransferType(const TransferType type)
void Frame::setPriority(const TransferPriority priority)
{
UAVCAN_ASSERT(priority < NumTransferPriorities);
if (transfer_type_ == TransferTypeMessageBroadcast ||
transfer_type_ == TransferTypeMessageUnicast)
{