mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user