aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2017-07-23 20:26:49 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2017-07-23 20:26:49 +0200
commit6629abc5e0bf8271c91c8953b1847c7715d7f6af (patch)
tree15f3f34673bc3acaeca55778b32985fb0be4c87b /lib
parent82638ab4b3b80b7f39fac209283b2a7195f8c3b7 (diff)
Closes #290 - the problem with subtracting of timeslot number for timeslots 0,1,2.
Diffstat (limited to 'lib')
-rw-r--r--lib/receiver/receiver_config.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/receiver/receiver_config.cc b/lib/receiver/receiver_config.cc
index 0abf200..44e3b6c 100644
--- a/lib/receiver/receiver_config.cc
+++ b/lib/receiver/receiver_config.cc
@@ -53,8 +53,8 @@ burst_counter burst_counter::subtract_timeslots(unsigned int number_of_timeslots
if (timeslot_nr < 0) {
timeslot_nr = timeslot_nr + 8;
- t2 = (d_t2 - 1) % 26;
- t3 = (d_t3 - 1) % 51;
+ t2 = (d_t2+26 - 1) % 26;
+ t3 = (d_t3+51 - 1) % 51;
if ((d_t2 == 0) && (d_t3 == 0)) {
t1 = (d_t1 - 1) % (1 << 11);