diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-10 04:49:18 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-10 04:49:18 +0100 |
commit | 1834e7886112944cbb8b92751c13f50799142079 (patch) | |
tree | c433dabb11862efa677e0a41fe010fc36d8d5980 /src | |
parent | 4f2fcae5ad028b76ac1d41a279857df85f20c376 (diff) | |
download | dabmod-1834e7886112944cbb8b92751c13f50799142079.tar.gz dabmod-1834e7886112944cbb8b92751c13f50799142079.tar.bz2 dabmod-1834e7886112944cbb8b92751c13f50799142079.zip |
Rename misleading variable name
Diffstat (limited to 'src')
-rw-r--r-- | src/OutputUHD.cpp | 10 | ||||
-rw-r--r-- | src/OutputUHD.h | 2 |
2 files changed, 6 insertions, 6 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 ); diff --git a/src/OutputUHD.h b/src/OutputUHD.h index dfa471d..0630480 100644 --- a/src/OutputUHD.h +++ b/src/OutputUHD.h @@ -209,7 +209,7 @@ class OutputUHD: public ModOutput, public RemoteControllable { // Used to print statistics once a second std::chrono::steady_clock::time_point last_print_time; - bool sourceContainsTimestamp = false; + bool sync_and_ts_valid = false; ThreadsafeQueue<UHDWorkerFrameData> frames; |