aboutsummaryrefslogtreecommitdiffstats
path: root/src/EtiReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r--src/EtiReader.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp
index 16272e3..067d6d0 100644
--- a/src/EtiReader.cpp
+++ b/src/EtiReader.cpp
@@ -287,7 +287,7 @@ bool EtiReader::sourceContainsTimestamp()
/* See ETS 300 799, Annex C.2.2 */
}
-double EtiReader::getPPSOffset()
+uint32_t EtiReader::getPPSOffset()
{
if (!sourceContainsTimestamp()) {
//fprintf(stderr, "****** SOURCE NO TS\n");
@@ -296,8 +296,7 @@ double EtiReader::getPPSOffset()
uint32_t timestamp = ntohl(eti_tist.TIST) & 0xFFFFFF;
//fprintf(stderr, "****** TIST 0x%x\n", timestamp);
- double pps = timestamp / 16384000.0; // seconds
- return pps;
+ return timestamp;
}