diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-02-21 18:13:26 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-02-21 18:13:26 +0100 |
commit | 05d3e26409a8f62c7f55851390d61d953f59489a (patch) | |
tree | 45c9428132e4f02f799ca81fce434fcf33fd1120 /src/output/UHD.cpp | |
parent | ba0c32703ee1af770deabdf864c806d974ea8206 (diff) | |
download | dabmod-05d3e26409a8f62c7f55851390d61d953f59489a.tar.gz dabmod-05d3e26409a8f62c7f55851390d61d953f59489a.tar.bz2 dabmod-05d3e26409a8f62c7f55851390d61d953f59489a.zip |
Change mod to output queue behaviour, fix SFN dexter + B200
Diffstat (limited to 'src/output/UHD.cpp')
-rw-r--r-- | src/output/UHD.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp index 6e38f73..6810249 100644 --- a/src/output/UHD.cpp +++ b/src/output/UHD.cpp @@ -350,6 +350,7 @@ void UHD::transmit_frame(const struct FrameData& frame) frame.ts.timestamp_valid and m_require_timestamp_refresh and samps_to_send <= usrp_max_num_samps ); + m_require_timestamp_refresh = false; //send a single packet size_t num_tx_samps = m_tx_stream->send( @@ -359,7 +360,7 @@ void UHD::transmit_frame(const struct FrameData& frame) num_acc_samps += num_tx_samps; - md_tx.time_spec += uhd::time_spec_t(0, num_tx_samps/m_conf.sampleRate); + md_tx.time_spec += uhd::time_spec_t::from_ticks(num_tx_samps, (double)m_conf.sampleRate); if (num_tx_samps == 0) { etiLog.log(warn, |