NXDN Permissed Data Conditional Check;

This commit is contained in:
lwvmobile 2022-11-11 22:45:33 -05:00
parent 7af5ffe9fa
commit d1efa05164
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,8 @@ void nxdn_deperm_facch(dsd_opts * opts, dsd_state * state, uint8_t bits[144])
}
if (crc == check) NXDN_Elements_Content_decode(opts, state, 1, trellis_buf);
else NXDN_Elements_Content_decode(opts, state, 0, trellis_buf);
//only run data with bad CRC when payload is enabled and hide the ugly
else if (opts->payload == 1) NXDN_Elements_Content_decode(opts, state, 0, trellis_buf);
}
void nxdn_deperm_sacch(dsd_opts * opts, dsd_state * state, uint8_t bits[60])

View File

@ -78,9 +78,8 @@ void NXDN_SACCH_Full_decode(dsd_opts * opts, dsd_state * state)
}
/* Decodes the element content */
//if (CrcCorrect == 1) NXDN_Elements_Content_decode(opts, state, CrcCorrect, SACCH);
//run it, and let each element handler decide what is okay for console, internal, and terminal assignment
if (1 == 1) NXDN_Elements_Content_decode(opts, state, CrcCorrect, SACCH);
//run it under crccorrect, or under payload (if incorrect, hide bad data unless payload enabled)
if (CrcCorrect == 1 || opts->payload == 1) NXDN_Elements_Content_decode(opts, state, CrcCorrect, SACCH);
} /* End NXDN_SACCH_Full_decode() */