mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2025-12-06 05:32:00 +01:00
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
|
unsigned int CDMRDataHeader::getBlocks() const
|
||||||
{
|
{
|
||||||
|
if (m_blocks == 0U)
|
||||||
|
return 1U;
|
||||||
|
|
||||||
return m_blocks;
|
return m_blocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue