aboutsummaryrefslogtreecommitdiffstats
path: root/src/EtiReader.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-09-26 11:23:53 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-09-26 11:24:02 +0200
commit11295eabfdb514b43918b8ac45945d36f81f4bd7 (patch)
treeaa76f5e16867de3e57826f606a503cd325d54ae4 /src/EtiReader.cpp
parent685095418bc8fd27dcd0b1d73ad1741114aeda6a (diff)
downloaddabmod-11295eabfdb514b43918b8ac45945d36f81f4bd7.tar.gz
dabmod-11295eabfdb514b43918b8ac45945d36f81f4bd7.tar.bz2
dabmod-11295eabfdb514b43918b8ac45945d36f81f4bd7.zip
Interrupt UHD when FCT value is not contiguous
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r--src/EtiReader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp
index f7376cc..fe54f55 100644
--- a/src/EtiReader.cpp
+++ b/src/EtiReader.cpp
@@ -297,11 +297,13 @@ bool EtiReader::sourceContainsTimestamp()
double EtiReader::getPPSOffset()
{
- if (!sourceContainsTimestamp())
+ if (!sourceContainsTimestamp()) {
+ //fprintf(stderr, "****** SOURCE NO TS\n");
return 0.0;
+ }
uint32_t timestamp = ntohl(eti_tist.TIST) & 0xFFFFFF;
- //fprintf(stderr, "TIST 0x%x\n", timestamp);
+ //fprintf(stderr, "****** TIST 0x%x\n", timestamp);
double pps = timestamp / 16384000.0; // seconds
return pps;