diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-06-18 15:57:26 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-06-18 15:57:26 +0200 |
commit | b76ebdb856b20a8078c6386bc20e79aa0d8db741 (patch) | |
tree | d3cef5c00205ea1e755267e9e8f805c179a71ffb /src/output/UHD.cpp | |
parent | 753fb5451b3f31aff2c389126467efa626975d78 (diff) | |
download | dabmod-b76ebdb856b20a8078c6386bc20e79aa0d8db741.tar.gz dabmod-b76ebdb856b20a8078c6386bc20e79aa0d8db741.tar.bz2 dabmod-b76ebdb856b20a8078c6386bc20e79aa0d8db741.zip |
Rework GPSDO fix check
Accelerate startup, take advantage of new UHD sensor, fix startup
issue.
Diffstat (limited to 'src/output/UHD.cpp')
-rw-r--r-- | src/output/UHD.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp index 711e218..e4b578e 100644 --- a/src/output/UHD.cpp +++ b/src/output/UHD.cpp @@ -362,6 +362,12 @@ SDRDevice::RunStatistics UHD::get_run_statistics(void) const rs.num_overruns = num_overflows; rs.num_late_packets = num_late_packets; rs.num_frames_modulated = num_frames_modulated; + + if (m_device_time) { + const auto gpsdo_stat = m_device_time->get_gnss_stats(); + rs.gpsdo_holdover = gpsdo_stat.holdover; + rs.gpsdo_num_sv = gpsdo_stat.num_sv; + } return rs; } @@ -433,7 +439,7 @@ bool UHD::is_clk_source_ok(void) const } if (m_device_time) { - ok |= m_device_time->verify_time(); + ok &= m_device_time->verify_time(); } return ok; |