From b82b802e6e146d60031c8c7f031f9a9114e6a36c Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 29 Feb 2016 06:45:40 +0000 Subject: [PATCH] IPSC session start changes. --- DMRIPSC.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DMRIPSC.cpp b/DMRIPSC.cpp index 8b305ed..4c66b05 100644 --- a/DMRIPSC.cpp +++ b/DMRIPSC.cpp @@ -245,11 +245,16 @@ bool CDMRIPSC::write(const CDMRData& data) } else if (dataType == DT_VOICE) { buffer[15U] |= data.getN(); } 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; count = 3U; } + if (dataType == DT_CSBK || dataType == DT_DATA_HEADER) { + m_streamId[slotIndex] = ::rand() + 1U; + count = 1U; + } + buffer[15U] |= (0x20U | dataType); }