From b069b03641e45c3986971fad74ac4594edfd541a Mon Sep 17 00:00:00 2001 From: Alex Orange Date: Thu, 10 Oct 2024 14:11:23 -0600 Subject: [PATCH] Make setting sync_source to anything other than default trigger a sync to PPS. --- lib/radio/uhd/radio_uhd_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/radio/uhd/radio_uhd_impl.cpp b/lib/radio/uhd/radio_uhd_impl.cpp index 7e05cd38169..7fc2b8e1558 100644 --- a/lib/radio/uhd/radio_uhd_impl.cpp +++ b/lib/radio/uhd/radio_uhd_impl.cpp @@ -308,7 +308,8 @@ radio_session_uhd_impl::radio_session_uhd_impl(const radio_configuration::radio& actual_sampling_rate_Hz = actual_rx_rate_Hz; // Reset timestamps. - if ((total_rx_channel_count > 1 || total_tx_channel_count > 1) && + if ((radio_config.clock.sync != radio_configuration::clock_sources::source::DEFAULT + || total_rx_channel_count > 1 || total_tx_channel_count > 1) && radio_config.clock.sync != radio_configuration::clock_sources::source::GPSDO) { device.set_time_unknown_pps(uhd::time_spec_t()); }