mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-24 01:25:41 +08:00
Handle zero block length.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user