fix PRBS verification
This commit is contained in:
parent
a9535f21f2
commit
ae530f762c
|
@ -96,8 +96,7 @@ void prbs_process_rx(struct timeslot_state_rx *tsr, const uint8_t *data, unsigne
|
||||||
tsr->sync_state.prbs_pc_num = pc_num;
|
tsr->sync_state.prbs_pc_num = pc_num;
|
||||||
tsr->sync_state.prbs_pc_offset = (sizeof(pc->bytes) - offset) % sizeof(pc->bytes);
|
tsr->sync_state.prbs_pc_offset = (sizeof(pc->bytes) - offset) % sizeof(pc->bytes);
|
||||||
tsr->sync_state.num_bit_err = 0;
|
tsr->sync_state.num_bit_err = 0;
|
||||||
/* FIXME: compare the remainder of the buffer */
|
/* fall-through to below to compare all of the buffer */
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (tsr->sync_state.has_sync) {
|
if (tsr->sync_state.has_sync) {
|
||||||
|
|
Loading…
Reference in New Issue