Xiaomi: Add support for parsing jump roping summary v5

It contains an extra unknown byte between the heartrates and heartrate
zone times.
This commit is contained in:
Sebastian Dröge 2024-12-12 16:16:46 +02:00
parent b754b595df
commit 43829d8f62

View File

@ -810,6 +810,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
final int headerSize;
switch (version) {
case 3:
case 5:
headerSize = 5;
break;
default:
@ -827,6 +828,8 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
builder.addByte(HR_MAX, UNIT_BPM);
builder.addByte(HR_MIN, UNIT_BPM);
builder.addUnknown(7);
if (version >= 5)
builder.addUnknown(1);
builder.addInt(HR_ZONE_EXTREME, UNIT_SECONDS);
builder.addInt(HR_ZONE_ANAEROBIC, UNIT_SECONDS);
builder.addInt(HR_ZONE_AEROBIC, UNIT_SECONDS);