From 6cba68f0d178bd9a47aca705d6e0a30294bb4db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 29 Aug 2023 22:03:05 +0200 Subject: [PATCH] The logging period is apparently an int, not a byte in GHP files --- src/data/onmoveparsers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/onmoveparsers.cpp b/src/data/onmoveparsers.cpp index 3127a8c7..39132300 100644 --- a/src/data/onmoveparsers.cpp +++ b/src/data/onmoveparsers.cpp @@ -221,7 +221,7 @@ bool GHPParser::readF0(const char *chunk, const Header &hdr, int &time, quint16 speed = u16(chunk + 10); quint8 hr = chunk[12]; quint8 fia = chunk[13]; - quint8 ms = chunk[16]; + qint32 ms = s32(chunk + 16); if (fia == 3) { Trackpoint t(Coordinates(lon / 1000000.0, lat / 1000000.0));