mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 13:15:40 -05:00
NXDN Permissed Data Conditional Check;
This commit is contained in:
@@ -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);
|
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])
|
void nxdn_deperm_sacch(dsd_opts * opts, dsd_state * state, uint8_t bits[60])
|
||||||
|
|||||||
@@ -78,9 +78,8 @@ void NXDN_SACCH_Full_decode(dsd_opts * opts, dsd_state * state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Decodes the element content */
|
/* Decodes the element content */
|
||||||
//if (CrcCorrect == 1) NXDN_Elements_Content_decode(opts, state, CrcCorrect, SACCH);
|
//run it under crccorrect, or under payload (if incorrect, hide bad data unless payload enabled)
|
||||||
//run it, and let each element handler decide what is okay for console, internal, and terminal assignment
|
if (CrcCorrect == 1 || opts->payload == 1) NXDN_Elements_Content_decode(opts, state, CrcCorrect, SACCH);
|
||||||
if (1 == 1) NXDN_Elements_Content_decode(opts, state, CrcCorrect, SACCH);
|
|
||||||
|
|
||||||
} /* End NXDN_SACCH_Full_decode() */
|
} /* End NXDN_SACCH_Full_decode() */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user