Merge pull request #865 from BeigeBox/fix/p25-tsdu-fallthrough

Fix missing break in P25 GROUP TSDU encoding
This commit is contained in:
Jonathan Naylor 2026-04-05 16:21:45 +01:00 committed by GitHub
commit 2ba4ef9e34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -428,6 +428,7 @@ void CP25Data::encodeTSDU(unsigned char* data)
tsbkValue = (tsbkValue << 16) + 0U; // Channel ID/Number (16 bits) - 0 for conventional
tsbkValue = (tsbkValue << 16) + (m_dstId & 0xFFFFU); // Group Address (16 bits)
tsbkValue = (tsbkValue << 24) + (m_srcId & 0xFFFFFFU); // Source Radio Address (24 bits)
break;
case P25_LCF_TSBK_CALL_ALERT:
tsbkValue = 0U;
tsbkValue = (tsbkValue << 16) + 0U;