mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 16:55:52 +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
|
||||
{
|
||||
if (m_blocks == 0U)
|
||||
return 1U;
|
||||
|
||||
return m_blocks;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user