mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 17:27:21 -05:00
DMR: Fix MassReg reg_address value and tweaks; #366
This commit is contained in:
@@ -940,14 +940,21 @@ void dmr_cspdu (dsd_opts * opts, dsd_state * state, uint8_t cs_pdu_bits[], uint8
|
||||
//MassReg
|
||||
if (a_type == 4)
|
||||
{
|
||||
uint8_t mreg_res = (uint8_t)ConvertBitIntoBytes(&bpbits1[0], 5);
|
||||
uint8_t reg_window = (uint8_t)ConvertBitIntoBytes(&bpbits1[5], 4); //7.2.19.5.1 Table 7.77 convert raw to seconds
|
||||
uint8_t aloha_mask = (uint8_t)ConvertBitIntoBytes(&bpbits1[9], 5);
|
||||
|
||||
//ADDRNull or MS Individual Address
|
||||
uint8_t reg_address = (uint8_t)ConvertBitIntoBytes(&bpbits2[16], 8); //see clause 7.2.41
|
||||
uint32_t reg_address = bparms2; //see clause 7.2.41
|
||||
|
||||
fprintf (stderr, "\n"); //raw value only on the reg window, see aforementioned table
|
||||
fprintf (stderr, " Reg Window: %X; Aloha Mask: %02X; Target: %d; ", reg_window, aloha_mask, reg_address);
|
||||
dmr_gateway_identifier(0,reg_address);
|
||||
|
||||
if (mreg_res != 0)
|
||||
fprintf (stderr, "Res: %02X", mreg_res);
|
||||
|
||||
if (reg_address != 0)
|
||||
dmr_gateway_identifier(0, reg_address);
|
||||
}
|
||||
|
||||
//debug
|
||||
|
||||
@@ -595,7 +595,7 @@ void pn95_lfsr() //test to see if this generates the correct bits now
|
||||
}
|
||||
|
||||
|
||||
void ysf_ehr (dsd_opts * opts, dsd_state * state, uint8_t dbuf[180], int start, int stop )
|
||||
void ysf_ehr (dsd_opts * opts, dsd_state * state, uint8_t * dbuf, int start, int stop )
|
||||
{
|
||||
int i;
|
||||
char ambe_fr[4][24];
|
||||
@@ -850,7 +850,7 @@ void processYSF(dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
|
||||
// send VCH to ehr voice handler
|
||||
ysf_ehr (opts, state, vbuf, 0, 4);
|
||||
ysf_ehr (opts, state, vbuf, 0, 5);
|
||||
|
||||
//send DCH to decoder
|
||||
ysf_conv_dch (opts, state, bn, bt, fn, ft, cm, dbuf);
|
||||
|
||||
Reference in New Issue
Block a user