diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-08-22 20:37:08 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-08-22 20:37:08 +0200 |
commit | 328f8d611797f34d64af91987e097d8311111c15 (patch) | |
tree | 209221667e2588fcf96d2ce3684e9d1c7f411721 /fig0_10.cpp | |
parent | 9e40fad717cc0b061a67ba82102788396f84afb9 (diff) | |
download | etisnoop-328f8d611797f34d64af91987e097d8311111c15.tar.gz etisnoop-328f8d611797f34d64af91987e097d8311111c15.tar.bz2 etisnoop-328f8d611797f34d64af91987e097d8311111c15.zip |
Fix FIG0/10 parsing of milliseconds
Diffstat (limited to 'fig0_10.cpp')
-rw-r--r-- | fig0_10.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fig0_10.cpp b/fig0_10.cpp index 5c81c3f..b02edfa 100644 --- a/fig0_10.cpp +++ b/fig0_10.cpp @@ -57,7 +57,7 @@ bool fig0_10(fig0_common_t& fig0, int indent) if (UTC) { uint8_t seconds = f[5] >> 2; - uint16_t milliseconds = ((uint16_t)(f[5] & 0x2) << 8) | f[6]; + uint16_t milliseconds = ((uint16_t)(f[5] & 0x3) << 8) | f[6]; sprintf(desc, "FIG 0/%d(long): MJD=0x%X %s, LSI %u, ConfInd %u, UTC Time: %02d:%02d:%02d.%d", fig0.ext(), MJD, dateStr, LSI, ConfInd, hours, minutes, seconds, milliseconds); |