Handle zero block length.
This commit is contained in:
parent
730d14fde2
commit
c757c41754
|
@ -152,6 +152,9 @@ unsigned int CDMRDataHeader::getDstId() const
|
|||
|
||||
unsigned int CDMRDataHeader::getBlocks() const
|
||||
{
|
||||
if (m_blocks == 0U)
|
||||
return 1U;
|
||||
|
||||
return m_blocks;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue