aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-10 04:49:18 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-10 04:49:18 +0100
commit1834e7886112944cbb8b92751c13f50799142079 (patch)
treec433dabb11862efa677e0a41fe010fc36d8d5980 /src/OutputUHD.cpp
parent4f2fcae5ad028b76ac1d41a279857df85f20c376 (diff)
downloaddabmod-1834e7886112944cbb8b92751c13f50799142079.tar.gz
dabmod-1834e7886112944cbb8b92751c13f50799142079.tar.bz2
dabmod-1834e7886112944cbb8b92751c13f50799142079.zip
Rename misleading variable name
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index e1fe9dd..e2616a6 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -267,7 +267,7 @@ OutputUHD::OutputUHD(
myConf.muteNoTimestamps ? "enabled" : "disabled");
// preparing output thread worker data
- sourceContainsTimestamp = false;
+ sync_and_ts_valid = false;
SetDelayBuffer(myConf.dabMode);
@@ -407,7 +407,7 @@ int OutputUHD::process(Buffer* dataIn)
throw std::runtime_error("Non-constant input length!");
}
- sourceContainsTimestamp = myConf.enableSync and
+ sync_and_ts_valid = myConf.enableSync and
myEtiSource->sourceContainsTimestamp();
if (gpsfix_needs_check()) {
@@ -733,7 +733,7 @@ void OutputUHD::handle_frame(const struct UHDWorkerFrameData *frame)
double usrp_time = myUsrp->get_time_now().get_real_secs();
bool timestamp_discontinuity = false;
- if (sourceContainsTimestamp) {
+ if (sync_and_ts_valid) {
// Tx time from MNSC and TIST
uint32_t tx_second = frame->ts.timestamp_sec;
uint32_t tx_pps = frame->ts.timestamp_pps;
@@ -812,7 +812,7 @@ void OutputUHD::handle_frame(const struct UHDWorkerFrameData *frame)
throw std::runtime_error("Timestamp error. Aborted.");
}
}
- else { // !sourceContainsTimestamp
+ else { // !sync_and_ts_valid
if (myConf.muting or myConf.muteNoTimestamps) {
/* There was some error decoding the timestamp */
if (myConf.muting) {
@@ -849,7 +849,7 @@ void OutputUHD::tx_frame(const struct UHDWorkerFrameData *frame, bool ts_update)
//ensure the the last packet has EOB set if the timestamps has been
//refreshed and need to be reconsidered.
md_tx.end_of_burst = (
- sourceContainsTimestamp and
+ sync_and_ts_valid and
(frame->ts.timestamp_refresh or ts_update) and
samps_to_send <= usrp_max_num_samps );