From 908c469f3049005d721d516b6b6f3d80cf268ee7 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 13 Oct 2021 09:20:43 +0200 Subject: [PATCH] sync: don't fail camping on cell if current and target srate match this fixes #3437. The check/requirement for target srate to be different to current srate isn't needed, and in fact fails for 6 PRBs where both are indentical always. --- srsue/hdr/phy/sync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/hdr/phy/sync.h b/srsue/hdr/phy/sync.h index cb41e41a6..677ac6a1f 100644 --- a/srsue/hdr/phy/sync.h +++ b/srsue/hdr/phy/sync.h @@ -282,7 +282,7 @@ private: bool set_camp(float new_srate) { std::lock_guard lock(mutex); - if (current_srate != new_srate || srate_mode != SRATE_CAMP) { + if (srate_mode != SRATE_CAMP) { current_srate = new_srate; srate_mode = SRATE_CAMP; return true;