From 2deaab8dedc12345e345ca02383dfb7efe1b7d7f Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sat, 28 Sep 2019 23:06:49 +0200 Subject: [PATCH] fix synch_file example to work with sample rates other than 1.92 --- lib/examples/synch_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/examples/synch_file.c b/lib/examples/synch_file.c index 0990ebae2..204b8ff27 100644 --- a/lib/examples/synch_file.c +++ b/lib/examples/synch_file.c @@ -158,7 +158,7 @@ int main(int argc, char **argv) { * a) requries more memory but has less latency and is paralellizable. */ for (N_id_2=0;N_id_2<3;N_id_2++) { - if (srslte_pss_init(&pss[N_id_2], frame_length)) { + if (srslte_pss_init_fft(&pss[N_id_2], frame_length, symbol_sz)) { ERROR("Error initializing PSS object\n"); exit(-1); } @@ -166,7 +166,7 @@ int main(int argc, char **argv) { ERROR("Error initializing N_id_2\n"); exit(-1); } - if (srslte_sss_init(&sss[N_id_2], 128)) { + if (srslte_sss_init(&sss[N_id_2], symbol_sz)) { ERROR("Error initializing SSS object\n"); exit(-1); }