Garmin Fenix 5/6 new firmware uses enhanced speed and altitud fields

This maps them to correspoding standard fields
Fixes #3161 and #3168
This commit is contained in:
Ale Martinez
2019-09-20 17:13:24 -03:00
parent b47ddd13d5
commit 6f50bc74e3
3 changed files with 3 additions and 0 deletions

View File

@@ -379,6 +379,7 @@ struct FitFileReaderState
case 3111: return "Garmin Fenix 5x +";
case 3112: return "Garmin Edge 520 +";
case 3113: return "Garmin FR945";
case 3291: return "Garmin Fenix 6x";
case 20119: return "Garmin Training Center";
case 65532: return "Android ANT+ Plugin";
case 65534: return "Garmin Connect Website";
@@ -1619,6 +1620,7 @@ struct FitFileReaderState
lngi = value;
break;
case 2: // ALTITUDE
case 78:// ENHANCED ALTITUDE
if (!native_profile && field.deve_idx>-1)
alt = deve_value;
else
@@ -1638,6 +1640,7 @@ struct FitFileReaderState
km = value / 100000.0;
break;
case 6: // SPEED
case 73:// ENHANCED SPEED
kph = value * 3.6 / 1000.0;
break;
case 7: // POWER

Binary file not shown.

BIN
test/runs/4077461142.zip Normal file

Binary file not shown.