default universe priority
This commit is contained in:
parent
6f4ce45413
commit
4e38144e9f
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue