|
|
|
|
@ -2087,19 +2087,19 @@ 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);
|
|
|
|
|
nrd = (Encode_8b10b[rd][((int) parities[j][i])] >> 10) & 1;
|
|
|
|
|
if (uptime != 0) // don't correctly update parties if uptime is 0 so the frame will fail the FEC check and be discarded
|
|
|
|
|
nrd = (Encode_8b10b[rd][((int) parities[j][i])] >> 10) & 1;
|
|
|
|
|
// printf ("data10[%d] = encoded parities[%d][%d] = %x \n",
|
|
|
|
|
// ctr2 - 1, j, i, data10[ctr2 - 1]);
|
|
|
|
|
|
|
|
|
|
rd = nrd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
#ifdef DEBUG_LOGGING
|
|
|
|
|
// printf("\nAt end of data10 write, %d ctr2 values written\n\n", ctr2);
|
|
|
|
|
#endif
|
|
|
|
|
|