Skip to content

Commit

Permalink
Handle the Appended Blocks count in some DMR Data Headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Mar 15, 2016
1 parent 0a8c633 commit e1b1d13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DMRDataHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,14 @@ bool CDMRDataHeader::put(const unsigned char* bytes)

case DPF_DEFINED_RAW:
CUtils::dump(1U, "Raw or Status/Precoded Short Data Header", m_data, 12U);
m_blocks = m_data[0U] & 0x3FU;
m_F = (m_data[8U] & 0x01U) == 0x01U;
m_S = (m_data[8U] & 0x02U) == 0x02U;
break;

case DPF_DEFINED_SHORT:
CUtils::dump(1U, "Defined Short Data Header", m_data, 12U);
m_blocks = m_data[0U] & 0x3FU;
m_F = (m_data[8U] & 0x01U) == 0x01U;
m_S = (m_data[8U] & 0x02U) == 0x02U;
break;
Expand Down

0 comments on commit e1b1d13

Please sign in to comment.