Fixed offset int in previous commit

master
Ismael Gomez 7 years ago
parent b77e3b0be5
commit 0fbeee72a1

@ -168,7 +168,7 @@ private:
void set_cell(srslte_cell_t cell); void set_cell(srslte_cell_t cell);
ret_code run_subframe(uint32_t sf_idx); ret_code run_subframe(uint32_t sf_idx);
ret_code run_subframe_sync(srslte_ue_sync_t *ue_sync, uint32_t sf_idx); ret_code run_subframe_sync(srslte_ue_sync_t *ue_sync, uint32_t sf_idx);
ret_code run_multiple_subframes(cf_t *buffer, uint32_t offset, uint32_t sf_idx, uint32_t nof_sf); ret_code run_multiple_subframes(cf_t *buffer, int offset, uint32_t sf_idx, uint32_t nof_sf);
float rssi(); float rssi();
float rsrp(); float rsrp();
float rsrp_n(); float rsrp_n();

@ -1090,7 +1090,7 @@ phch_recv::measure::ret_code phch_recv::measure::run_subframe_sync(srslte_ue_syn
} }
phch_recv::measure::ret_code phch_recv::measure::run_multiple_subframes(cf_t *input_buffer, phch_recv::measure::ret_code phch_recv::measure::run_multiple_subframes(cf_t *input_buffer,
uint32_t offset, int offset,
uint32_t sf_idx, uint32_t sf_idx,
uint32_t max_sf) uint32_t max_sf)
{ {
@ -1099,7 +1099,7 @@ phch_recv::measure::ret_code phch_recv::measure::run_multiple_subframes(cf_t *in
ret_code ret = IDLE; ret_code ret = IDLE;
offset = offset-sf_len/2; offset = offset-sf_len/2;
while (offset < 0) { while (offset < 0 && sf_idx < max_sf) {
offset += sf_len; offset += sf_len;
sf_idx ++; sf_idx ++;
} }

Loading…
Cancel
Save