mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Merge branch 'master' of github.com:/GoldenCheetah/GoldenCheetah
This commit is contained in:
@@ -237,6 +237,12 @@ struct FitFileReaderState
|
||||
default: rideFile->setDeviceType(QString("Garmin %1").arg(prod));
|
||||
}
|
||||
}
|
||||
else if (manu == 38) {
|
||||
switch (prod) {
|
||||
case 1: rideFile->setDeviceType("o_synce navi2coach"); break;
|
||||
default: rideFile->setDeviceType(QString("Garmin %1").arg(prod));
|
||||
}
|
||||
}
|
||||
else {
|
||||
rideFile->setDeviceType(QString("Unknown FIT Device %1:%2").arg(manu).arg(prod));
|
||||
}
|
||||
@@ -366,6 +372,7 @@ struct FitFileReaderState
|
||||
break;
|
||||
case 12: break; // "cycle_length"
|
||||
case 13: temperature = value; break;
|
||||
case 29: // ACCUMULATED_POWER
|
||||
case 30: lrbalance = (value & 0x80 ? 100 - (value & 0x7F) : value & 0x7F);break;
|
||||
|
||||
default: unknown_record_fields.insert(field.num);
|
||||
|
||||
@@ -214,7 +214,7 @@ struct SyncFileReaderState
|
||||
RideFile * run() {
|
||||
errors.clear();
|
||||
rideFile = new RideFile;
|
||||
rideFile->setDeviceType("Macro Sync");
|
||||
rideFile->setDeviceType("o_synce macro/macrox");
|
||||
rideFile->setFileFormat("Macro GoldenCheetah Sync File (osyn)");
|
||||
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
|
||||
Reference in New Issue
Block a user