try again skipping FEC

pull/104/head
alanbjohnston 5 years ago committed by GitHub
parent a2cdf32049
commit d94c988d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2022,7 +2022,6 @@ void get_tlm_fox() {
{
if (ctr1 < headerLen) {
rs_frame[j][i] = h[ctr1];
if (uptime != 0) // skip updated the RS FEC if uptime is 0 so the frame will fail the FEC check and be discarded
update_rs(parities[j], h[ctr1]);
// printf("header %d rs_frame[%d][%d] = %x \n", ctr1, j, i, h[ctr1]);
data8[ctr1++] = rs_frame[j][i];
@ -2088,6 +2087,8 @@ void get_tlm_fox() {
rd = nrd; // ^ nrd;
ctr2++;
}
if (uptime != 0) // skip update parties if uptime is 0 so the frame will fail the FEC check and be discarded
{
for (i = 0; i < parityLen; i++) {
for (int j = 0; j < rsFrames; j++) {
data10[ctr2++] = (Encode_8b10b[rd][((int) parities[j][i])] & 0x3ff);
@ -2098,6 +2099,7 @@ void get_tlm_fox() {
rd = nrd;
}
}
}
#ifdef DEBUG_LOGGING
// printf("\nAt end of data10 write, %d ctr2 values written\n\n", ctr2);
#endif

Loading…
Cancel
Save

Powered by TurnKey Linux.