summaryrefslogtreecommitdiffstats
path: root/src/TimestampDecoder.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:04:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:04:48 +0200
commit2623ad8c187c61c6c3bad4819683346438529b89 (patch)
tree97135baab8361cc0df243d9fdee82ab659dc2c3b /src/TimestampDecoder.h
parentfa1e1ebca142e5256d50247ef13dc5efc56c6346 (diff)
downloaddabmod-2623ad8c187c61c6c3bad4819683346438529b89.tar.gz
dabmod-2623ad8c187c61c6c3bad4819683346438529b89.tar.bz2
dabmod-2623ad8c187c61c6c3bad4819683346438529b89.zip
Keep tist offset across modulator restarts
Diffstat (limited to 'src/TimestampDecoder.h')
-rw-r--r--src/TimestampDecoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h
index 9420506..5bb5ec8 100644
--- a/src/TimestampDecoder.h
+++ b/src/TimestampDecoder.h
@@ -101,16 +101,16 @@ class TimestampDecoder : public RemoteControllable
/* The modulator adds this offset to the TIST to define time of
* frame transmission
*/
- double offset_s,
+ double& offset_s,
/* Specifies by how many stages the timestamp must be delayed.
* (e.g. The FIRFilter is pipelined, therefore we must increase
* tist_delay_stages by one if the filter is used
*/
unsigned tist_delay_stages) :
- RemoteControllable("tist")
+ RemoteControllable("tist"),
+ timestamp_offset(offset_s)
{
- timestamp_offset = offset_s;
m_tist_delay_stages = tist_delay_stages;
inhibit_second_update = 0;
time_pps = 0.0;
@@ -174,7 +174,7 @@ class TimestampDecoder : public RemoteControllable
uint32_t time_secs;
int32_t latestFCT;
double time_pps;
- double timestamp_offset;
+ double& timestamp_offset;
unsigned m_tist_delay_stages;
int inhibit_second_update;
bool offset_changed;