mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
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:
parent
b754b595df
commit
43829d8f62
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user