P25P1 Information

P25P1 Information
-added fprintf and printw for algid, keyid, mfid, errs, etc
This commit is contained in:
lwvmobile
2022-02-24 20:05:32 -05:00
committed by GitHub
parent 11d72c39d3
commit ab186da2f3
8 changed files with 69 additions and 33 deletions

View File

@@ -452,12 +452,22 @@ processHDU(dsd_opts* opts, dsd_state* state)
skipDibit (opts, state, 5);
status = getDibit (opts, state);
//TODO: Do something useful with the status bits...
/*
algidhex = strtol (algid, NULL, 2);
kidhex = strtol (kid, NULL, 2);
if (opts->p25enc == 1)
state->payload_algid = algidhex;
state->payload_keyid = kidhex;
if (opts->payload == 1)
{
fprintf (stderr, "ALG ID: 0x%X KEY ID: 0x%X\n", algidhex, kidhex);
}
*/
if (opts->p25enc == 1 && opts->payload == 0)
{
algidhex = strtol (algid, NULL, 2);
kidhex = strtol (kid, NULL, 2);
fprintf (stderr, "mi: %s algid: $%x kid: $%x\n", mi, algidhex, kidhex);
//fprintf (stderr, "mi: %s algid: $%x kid: $%x\n", mi, algidhex, kidhex);
}
if (opts->p25lc == 1)
{