From 1bacb91addab96c8ea7037ef2108a775c74b093c Mon Sep 17 00:00:00 2001 From: cig Date: Wed, 7 Oct 2020 21:25:47 +0200 Subject: [PATCH] Bugfix: set freq_offet to static to avoid re-initialisation in frequency scanner --- executables/nr-ue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executables/nr-ue.c b/executables/nr-ue.c index ee61df86e7..443d24d435 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -176,7 +176,7 @@ static void UE_synch(void *arg) { PHY_VARS_NR_UE *UE = syncD->UE; sync_mode_t sync_mode = pbch; int CC_id = UE->CC_id; - int freq_offset=0; + static int freq_offset=0; UE->is_synchronized = 0; if (UE->UE_scan == 0) {