Corrected CX channels timeslot numbering
Corrected bug where channels other than C0 had incorrect timeslot number - greater by 1 from the correct value.
diff --git a/lib/receiver/receiver_impl.cc b/lib/receiver/receiver_impl.cc
index 1833293..97402b2 100644
--- a/lib/receiver/receiver_impl.cc
+++ b/lib/receiver/receiver_impl.cc
@@ -344,14 +344,10 @@
break; //do nothing
}
- if(input_nr==0)
+ if(input_nr==input_items.size()-1)
{
d_burst_nr++; //go to next burst
to_consume += TS_BITS * d_OSR + d_burst_nr.get_offset(); //consume samples of the burst up to next guard period
- }
-
- if(input_nr==input_items.size()-1)
- {
consume_each(to_consume);
}
//and add offset which is introduced by