aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/SDR.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-10-25 13:46:40 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-10-25 13:46:40 +0200
commit8ce3fce9ed2fa7d2a0eb2d9e0c2a0fecdc0c2844 (patch)
treeff04ea1a637729c9be2970d72b2f354b320e7d92 /src/output/SDR.cpp
parenta2be0c3ab77dab50ded4850f38d2b796b322d0c4 (diff)
parent56e046c3390a15aab4baddb502a490bb4505942a (diff)
downloaddabmod-8ce3fce9ed2fa7d2a0eb2d9e0c2a0fecdc0c2844.tar.gz
dabmod-8ce3fce9ed2fa7d2a0eb2d9e0c2a0fecdc0c2844.tar.bz2
dabmod-8ce3fce9ed2fa7d2a0eb2d9e0c2a0fecdc0c2844.zip
Merge branch 'next' into dexter
Diffstat (limited to 'src/output/SDR.cpp')
-rw-r--r--src/output/SDR.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp
index 53f68c2..ae09acd 100644
--- a/src/output/SDR.cpp
+++ b/src/output/SDR.cpp
@@ -2,7 +2,7 @@
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Her Majesty the
Queen in Right of Canada (Communications Research Center Canada)
- Copyright (C) 2018
+ Copyright (C) 2022
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -302,6 +302,10 @@ void SDR::handle_frame(struct FrameData& frame)
return;
}
+ if (frame.ts.offset_changed) {
+ m_device->require_timestamp_refresh();
+ }
+
if (last_tx_time_initialised) {
const size_t sizeIn = frame.buf.size() / frame.sampleSize;
@@ -330,8 +334,7 @@ void SDR::handle_frame(struct FrameData& frame)
tx_second << "+" << (double)tx_pps/16384000.0 <<
"(" << tx_pps << ")";
- frame.ts.timestamp_refresh = true;
-#error "wrong, as the frame could be discarded"
+ m_device->require_timestamp_refresh();
}
}