mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 09:17:20 -05:00
DMR: Fix Hytera Enhanced Not Muting Properly (OR SVC OPT enc bit);
This commit is contained in:
@@ -329,12 +329,14 @@ void dmr_flco (dsd_opts * opts, dsd_state * state, uint8_t lc_bits[], uint32_t C
|
||||
{
|
||||
if (slot == 0)
|
||||
{
|
||||
state->dmr_so |= 0x40; //OR the enc bit onto the SO
|
||||
state->payload_algid = alg;
|
||||
state->payload_keyid = key;
|
||||
state->payload_mi = mi;
|
||||
}
|
||||
else
|
||||
{
|
||||
state->dmr_soR |= 0x40; //OR the enc bit onto the SO
|
||||
state->payload_algidR = alg;
|
||||
state->payload_keyidR = key;
|
||||
state->payload_miR = mi;
|
||||
|
||||
@@ -30,6 +30,7 @@ void dmr_pi (dsd_opts * opts, dsd_state * state, uint8_t PI_BYTE[], uint32_t CRC
|
||||
{
|
||||
if (state->currentslot == 0)
|
||||
{
|
||||
state->dmr_so |= 0x40; //OR the enc bit onto the SO
|
||||
state->payload_algid = PI_BYTE[0];
|
||||
state->payload_keyid = PI_BYTE[2];
|
||||
state->payload_mi = ((unsigned long long int)PI_BYTE[3] << 32ULL) | ((unsigned long long int)PI_BYTE[4] << 24) |
|
||||
@@ -37,6 +38,7 @@ void dmr_pi (dsd_opts * opts, dsd_state * state, uint8_t PI_BYTE[], uint32_t CRC
|
||||
}
|
||||
else
|
||||
{
|
||||
state->dmr_soR |= 0x40; //OR the enc bit onto the SO
|
||||
state->payload_algidR = PI_BYTE[0];
|
||||
state->payload_keyidR = PI_BYTE[2];
|
||||
state->payload_miR = ((unsigned long long int)PI_BYTE[3] << 32ULL) | ((unsigned long long int)PI_BYTE[4] << 24) |
|
||||
|
||||
Reference in New Issue
Block a user