1
0
Fork 0

default universe priority

This commit is contained in:
Kevin Matz 2021-09-01 12:24:02 -04:00
parent 6f4ce45413
commit 4e38144e9f
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ void data_header::iStream(ACN::PDU::Stream stream)
/// > No priority outside the range of 0 to 200 shall be transmitted
/// > on the network.
*stream >> priority;
if (priority> 200)
if (priority > 200)
stream->setstate(std::ios_base::failbit);
*stream >> sync_address;
*stream >> sequence_number;
@ -66,7 +66,7 @@ void data_header::oStream(ACN::PDU::Stream stream) const
/// >
/// > No priority outside the range of 0 to 200 shall be transmitted on
/// > the network.
*stream << (priority <= 200 ? priority : 200);
*stream << (uint8_t)(priority <= 200 ? priority : 200);
*stream << sync_address;
*stream << sequence_number;
*stream << options;

View File

@ -123,7 +123,7 @@ struct data_header
/// > transmit a priority of 100. No priority outside the range of 0 to 200
/// > shall be transmitted on the network. Priority increases with numerical
/// > value, e.g., 200 is a higher priority than 100.
uint8_t priority;
uint8_t priority = 100;
/// @brief \cite sACN 6.2.4 E1.31 Data Packet: Synchronization Address
///