Commit 9f87b4a0 authored by Sakthivel Velumani's avatar Sakthivel Velumani

some fixes in rx_rf

parent 5ea83b01
...@@ -647,12 +647,12 @@ void rx_rf(RU_t *ru,int *frame,int *slot) { ...@@ -647,12 +647,12 @@ void rx_rf(RU_t *ru,int *frame,int *slot) {
} }
else { else {
//we always advance the timestamp by samples_per_slot, even if we have not read the (full) slot. This is to keep the timestamp updated even when there is no RX. //we always advance the timestamp by samples_per_slot, even if we have not read the (full) slot. This is to keep the timestamp updated even when there is no RX.
proc->timestamp_rx += samples_per_slot; proc->timestamp_rx += fp->get_samples_per_slot((*slot-1)%fp->slots_per_frame,fp);
} }
int slot_type = nr_slot_select(cfg,*frame,*slot%fp->slots_per_frame); int slot_type = nr_slot_select(cfg,*frame,*slot%fp->slots_per_frame);
if (slot_type == NR_DOWNLINK_SLOT || slot_type == NR_MIXED_SLOT || IS_SOFTMODEM_RFSIM) { if (slot_type == NR_UPLINK_SLOT || slot_type == NR_MIXED_SLOT || IS_SOFTMODEM_RFSIM) {
if (slot_type == NR_MIXED_SLOT) { if (slot_type == NR_MIXED_SLOT) {
uint16_t rxsymb = 0; uint16_t rxsymb = 0;
......
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