Fix comparison between different send unit enum types
This commit is contained in:
parent
1894a633e1
commit
658d3dff31
@ -256,7 +256,7 @@ int AbstractPort::updatePacketListSequential()
|
|||||||
|
|
||||||
switch (streamList_[i]->sendUnit())
|
switch (streamList_[i]->sendUnit())
|
||||||
{
|
{
|
||||||
case OstProto::StreamControl::e_su_bursts:
|
case StreamBase::e_su_bursts:
|
||||||
burstSize = streamList_[i]->burstSize();
|
burstSize = streamList_[i]->burstSize();
|
||||||
x = AbstractProtocol::lcm(frameVariableCount, burstSize);
|
x = AbstractProtocol::lcm(frameVariableCount, burstSize);
|
||||||
n = ulong(burstSize * streamList_[i]->numBursts()) / x;
|
n = ulong(burstSize * streamList_[i]->numBursts()) / x;
|
||||||
@ -271,7 +271,7 @@ int AbstractPort::updatePacketListSequential()
|
|||||||
}
|
}
|
||||||
loopDelay = ibg2;
|
loopDelay = ibg2;
|
||||||
break;
|
break;
|
||||||
case OstProto::StreamControl::e_su_packets:
|
case StreamBase::e_su_packets:
|
||||||
x = frameVariableCount;
|
x = frameVariableCount;
|
||||||
n = 2;
|
n = 2;
|
||||||
while (x < minPacketSetSize_)
|
while (x < minPacketSetSize_)
|
||||||
@ -464,7 +464,7 @@ int AbstractPort::updatePacketListInterleaved()
|
|||||||
|
|
||||||
switch (streamList_[i]->sendUnit())
|
switch (streamList_[i]->sendUnit())
|
||||||
{
|
{
|
||||||
case OstProto::StreamControl::e_su_bursts:
|
case StreamBase::e_su_bursts:
|
||||||
numBursts = streamList_[i]->burstRate();
|
numBursts = streamList_[i]->burstRate();
|
||||||
if (streamList_[i]->burstRate() > 0)
|
if (streamList_[i]->burstRate() > 0)
|
||||||
{
|
{
|
||||||
@ -476,7 +476,7 @@ int AbstractPort::updatePacketListInterleaved()
|
|||||||
_burstSize = streamList_[i]->burstSize();
|
_burstSize = streamList_[i]->burstSize();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OstProto::StreamControl::e_su_packets:
|
case StreamBase::e_su_packets:
|
||||||
numPackets = streamList_[i]->packetRate();
|
numPackets = streamList_[i]->packetRate();
|
||||||
if (streamList_[i]->packetRate() > 0)
|
if (streamList_[i]->packetRate() > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user