Fix P25 bug introduced by PR #853 with following changes - Fix CP25Data::encodeTSDU() with P25_LCF_GROUP/P25_LCF_GRP_VCH_GRANT

- FIx P25Control P25_LCF_GROUP handling with P25_LCF_GRP_VCH_GRANT as LCF value.
This commit is contained in:
Shawn 2026-04-07 19:11:09 +08:00
parent 3ba965ed7e
commit 8fe1c551eb
3 changed files with 12 additions and 2 deletions

View file

@ -432,7 +432,7 @@ bool CP25Control::writeModem(unsigned char* data, unsigned int len)
// Build a Group Voice Channel Grant response
// Save original LCF and set Grant LCF for encoding
unsigned char originalLcf = m_rfData.getLCF();
m_rfData.setLCF(P25_LCF_GROUP);
m_rfData.setLCF(P25_LCF_GRP_VCH_GRANT);
m_rfData.setServiceType(0x00U); // Service options: 0x00 = routine priority, no emergency
// Encode TSDU with Grant response