Xert cloud download - spd and alt fields can have decimal part

Interpreting them as integers produces lot of zeros in those cases.
Fixes #3526
This commit is contained in:
Ale Martinez
2020-06-30 14:17:45 -03:00
parent cd2de5dc3d
commit c2abdc2a5b

View File

@@ -438,10 +438,10 @@ Xert::readFileCompleted()
add.hr = data["hr"].toInt();
if (!data["alt"].isNull())
add.alt = data["alt"].toInt();
add.alt = data["alt"].toDouble();
if (!data["spd"].isNull())
add.kph = data["spd"].toInt() / 1000.0;
add.kph = data["spd"].toDouble() / 1000.0;
if (!data["dist"].isNull())
add.km = data["dist"].toDouble() / 1000.0;