IPSC session start changes.
This commit is contained in:
parent
2502d6ba78
commit
b82b802e6e
1 changed files with 6 additions and 1 deletions
|
@ -245,11 +245,16 @@ bool CDMRIPSC::write(const CDMRData& data)
|
||||||
} else if (dataType == DT_VOICE) {
|
} else if (dataType == DT_VOICE) {
|
||||||
buffer[15U] |= data.getN();
|
buffer[15U] |= data.getN();
|
||||||
} else {
|
} else {
|
||||||
if ((dataType == DT_VOICE_LC_HEADER || dataType == DT_DATA_HEADER) && data.getSeqNo() == 0U) {
|
if (dataType == DT_VOICE_LC_HEADER) {
|
||||||
m_streamId[slotIndex] = ::rand() + 1U;
|
m_streamId[slotIndex] = ::rand() + 1U;
|
||||||
count = 3U;
|
count = 3U;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dataType == DT_CSBK || dataType == DT_DATA_HEADER) {
|
||||||
|
m_streamId[slotIndex] = ::rand() + 1U;
|
||||||
|
count = 1U;
|
||||||
|
}
|
||||||
|
|
||||||
buffer[15U] |= (0x20U | dataType);
|
buffer[15U] |= (0x20U | dataType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue