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:
parent
82cf7b49ca
commit
1a53968bd3
@ -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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user