Commit ae8dae1e authored by Joanne Hugé's avatar Joanne Hugé

Fix align_rx

parent 168d7ecd
......@@ -706,29 +706,13 @@ static void *recv_thread(void *p) {
}
}
//if(s->align_rx) {
// if((o.symbol_id == 0) &&
// (o.slot_id == 0) &&
// (o.subframe_id == 0) &&
// (o.frame_id == 0)) {
// received_hyper_frames++;
// // If we received at least 2 hyperframes and no packet has been lost
// if((received_hyper_frames > 1) && (prev_lost_pkts == lost_pkts)) {
// ready = 1;
// } else if(received_hyper_frames > 1) {
// printf("%d != %d\n", prev_lost_pkts, lost_pkts);
// }
// prev_lost_pkts = lost_pkts;
// }
// if(!ready)
// continue;
//}
if(s->align_rx) {
if((o.symbol_id == 0) &&
(o.slot_id == 0) &&
(o.subframe_id == 0)) {
(o.subframe_id == 0) &&
(o.frame_id == 0)) {
received_hyper_frames++;
// If we received at least 2 frames and no packet has been lost
// If we received at least 2 hyperframes and no packet has been lost
if((received_hyper_frames > 1) && (prev_lost_pkts == lost_pkts)) {
ready = 1;
} else if(received_hyper_frames > 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment