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

Added missing Garmin GPX power extension

This commit is contained in:
Martin Tůma 2023-04-17 23:32:48 +02:00
parent a928cc4ccb
commit adc09da815

View File

@ -144,7 +144,8 @@ void GPXParser::trkptExtensions(Trackpoint &trackpoint)
trackpoint.setTemperature(number()); trackpoint.setTemperature(number());
else if (_reader.name() == QLatin1String("cadence")) else if (_reader.name() == QLatin1String("cadence"))
trackpoint.setCadence(number()); trackpoint.setCadence(number());
else if (_reader.name() == QLatin1String("power")) else if (_reader.name() == QLatin1String("power")
|| _reader.name() == QLatin1String("PowerInWatts"))
trackpoint.setPower(number()); trackpoint.setPower(number());
else if (_reader.name() == QLatin1String("TrackPointExtension")) else if (_reader.name() == QLatin1String("TrackPointExtension"))
tpExtension(trackpoint); tpExtension(trackpoint);