Reset counter for sync lost when PSS is found

This commit is contained in:
Ismael Gomez 2019-07-29 17:12:42 +02:00
parent 7847c8da5e
commit 2859a75ca0
2 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,7 @@ bool srslte_cellid_isvalid(uint32_t cell_id) {
}
bool srslte_nofprb_isvalid(uint32_t nof_prb) {
if (nof_prb >= 6 && nof_prb <= SRSLTE_MAX_PRB) {
if (nof_prb >= 6 && nof_prb <= 100) {
return true;
} else {
return false;

View File

@ -35,7 +35,7 @@
#define MAX_TIME_OFFSET 128
#define TRACK_MAX_LOST 20
#define TRACK_MAX_LOST 10
#define TRACK_FRAME_SIZE 32
#define FIND_NOF_AVG_FRAMES 4
@ -635,7 +635,8 @@ static int track_peak_ok(srslte_ue_sync_t* q, uint32_t track_idx)
q->peak_idx = q->sf_len/2 + q->last_sample_offset;
q->frame_ok_cnt++;
q->frame_no_cnt = 0;
return 1;
}