From 2d64166acd61612cba6684cd27d60cab813667f5 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Wed, 17 Feb 2021 10:38:01 -0300 Subject: [PATCH] Added "with Barometer" to TCX and GPX creator tag to force Strava upload of altitude data. The user can revert to Strava basemap on Strava. Upload to Garmin Connect was tested for regresion. Fixes #3824 --- src/FileIO/GpxRideFile.cpp | 2 +- src/FileIO/TcxRideFile.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FileIO/GpxRideFile.cpp b/src/FileIO/GpxRideFile.cpp index 2f0560d5e..82ecd7891 100644 --- a/src/FileIO/GpxRideFile.cpp +++ b/src/FileIO/GpxRideFile.cpp @@ -71,7 +71,7 @@ GpxFileReader::toByteArray(Context *, const RideFile *ride, bool withAlt, bool w "http://www.garmin.com/xmlschemas/PowerExtensionv1.xsd" ); gpx.setAttribute("version", "1.1"); - gpx.setAttribute("creator", QString("GoldenCheetah (build %1)").arg(VERSION_LATEST)); + gpx.setAttribute("creator", QString("GoldenCheetah (build %1) with Barometer").arg(VERSION_LATEST)); doc.appendChild(gpx); diff --git a/src/FileIO/TcxRideFile.cpp b/src/FileIO/TcxRideFile.cpp index c306a35af..912587d9d 100644 --- a/src/FileIO/TcxRideFile.cpp +++ b/src/FileIO/TcxRideFile.cpp @@ -113,7 +113,7 @@ TcxFileReader::toByteArray(Context *context, const RideFile *ride, bool withAlt, if (ride->deviceType().toLower().contains("zwift") ) { text = doc.createTextNode("Zwift"); } else { - text = doc.createTextNode("Garmin TCX"); + text = doc.createTextNode("Garmin TCX with Barometer"); } creatorName.appendChild(text); creator.appendChild(creatorName);