From aef12ff74dc81573670c4014cd470494a1ca9fda Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Tue, 12 Sep 2023 17:41:38 -0400 Subject: [PATCH] DMR - Tweak to CSBK (BTV_GRANT) and FLC (BTV); --- src/dmr_csbk.c | 14 +++++++------- src/dmr_flco.c | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/dmr_csbk.c b/src/dmr_csbk.c index 49dbacc..7f57afd 100644 --- a/src/dmr_csbk.c +++ b/src/dmr_csbk.c @@ -106,13 +106,13 @@ void dmr_cspdu (dsd_opts * opts, dsd_state * state, uint8_t cs_pdu_bits[], uint8 uint32_t target = (uint32_t)ConvertBitIntoBytes(&cs_pdu_bits[32], 24); uint32_t source = (uint32_t)ConvertBitIntoBytes(&cs_pdu_bits[56], 24); - //broadcast calls do not carry src or tgt info - if (csbk_o == 50) - { - //seeting to all MS units and Dispatch? May need to just set to 0 and see what emb pulls out of it - target = 0xFFFFFF; //ALLMSI - source = 0xFFFECB; //DISPATI - } + //broadcast calls show no tgt/src info in ETSI manaual, but seem to correspond with same values in embedded link control + // if (csbk_o == 50) + // { + // //seeting to all MS units and Dispatch? May need to just set to 0 and see what emb pulls out of it + // target = 0xFFFFFF; //ALLMSI + // source = 0xFFFECB; //DISPATI + // } //move mbc variables out of if statement uint8_t mbc_lb = 0; // diff --git a/src/dmr_flco.c b/src/dmr_flco.c index bd5861e..f99fd80 100644 --- a/src/dmr_flco.c +++ b/src/dmr_flco.c @@ -417,17 +417,17 @@ void dmr_flco (dsd_opts * opts, dsd_state * state, uint8_t lc_bits[], uint32_t C //REMUS! Uncomment Line Below if desired // else strcat (state->call_string[slot], " "); - //Motorola FID 0x10 Only - if (fid == 0x10) + + if (1 == 1) //fid == 0x10 { /* Check the "Service Option" bits */ - if(so & 0x20) + if( (fid == 0x10) && (so & 0x20) ) //Motorola FID 0x10 Only { //REMUS! Uncomment Line Below if desired // strcat (state->call_string[slot], " TXI"); fprintf(stderr, "TXI "); } - if (so & 0x10) + if ( (fid == 0x10) && (so & 0x10) ) //Motorola FID 0x10 Only { //REMUS! Uncomment Line Below if desired // strcat (state->call_string[slot], " RPT");