1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Fixed FIT parser

This commit is contained in:
Martin Tůma 2016-11-01 08:24:05 +01:00
parent 82cf7b49ca
commit 1a53968bd3

View File

@ -197,7 +197,7 @@ bool FITParser::parseData(MessageDefinition *def, quint8 offset)
break; break;
case 13: case 13:
if (val != 0x7f) if (val != 0x7f)
trackpoint.setTemperature(val); trackpoint.setTemperature((qint8)val);
break; break;
default: default:
break; break;
@ -259,7 +259,7 @@ bool FITParser::parseHeader()
return false; return false;
} }
_len = hdr.data_size; _len = qFromLittleEndian(hdr.data_size);
if (hdr.header_size > 12) if (hdr.header_size > 12)
if (!readData((char *)&crc, sizeof(crc))) if (!readData((char *)&crc, sizeof(crc)))