From a41be56b2a80b54a0e153f519b9f3bacec3c12fc Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Thu, 12 Jun 2025 18:09:19 +0200 Subject: [PATCH] USRP lib: fix incorrect config check for time_source fallback Corrected a logic bug in usrp_lib.cpp where the code mistakenly checked openair0_cfg[0].clock_source instead of time_source when a time_source was already specified in usrp_args. Also improved the warning log to clarify that the config value is being ignored in favor of the explicit user-provided usrp_args. Co-authored-by: Alexandre Serio --- radio/USRP/usrp_lib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/USRP/usrp_lib.cpp b/radio/USRP/usrp_lib.cpp index 8fbb561149..6dde70b2eb 100644 --- a/radio/USRP/usrp_lib.cpp +++ b/radio/USRP/usrp_lib.cpp @@ -1202,9 +1202,9 @@ extern "C" { } } else { - if (openair0_cfg[0].clock_source != unset) { - LOG_W(HW,"Time source set in both usrp_args and in time_source, ingnoring the latter!\n"); - } + if (openair0_cfg[0].time_source != unset) { + LOG_W(HW, "Time source set in both usrp_args and in openair0_cfg[0].time_source, ignoring the latter!\n"); + } }