aboutsummaryrefslogtreecommitdiffstats
path: root/lib/receiver
diff options
context:
space:
mode:
authorptrkrysik <ptrkrysik@gmail.com>2015-06-07 18:36:15 +0200
committerptrkrysik <ptrkrysik@gmail.com>2015-06-07 18:36:15 +0200
commit91c28357fbca738cfefb33ed8256ff235fb4d590 (patch)
treef38f81e85ef21d9030bbfbec98aed0efd2561e6a /lib/receiver
parent5d73271301986c6d34744bb22322e5b9ea9ce436 (diff)
Corrected CX channels timeslot numbering
Corrected bug where channels other than C0 had incorrect timeslot number - greater by 1 from the correct value.
Diffstat (limited to 'lib/receiver')
-rw-r--r--lib/receiver/receiver_impl.cc6
1 files changed, 1 insertions, 5 deletions
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 @@ receiver_impl::work(int noutput_items,
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