mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
FitFile: Add O Synce in manufacturer and navi2coach in product
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);
|
||||
|
||||
Reference in New Issue
Block a user