1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 09:35:50 +01:00

Xiaomi: Add a comment about possible interpretation of unknown bytes in v3 jump roping activity parser

They're probably the same as for v5.
This commit is contained in:
Sebastian Dröge 2024-12-15 12:35:15 +02:00 committed by José Rebelo
parent 8aac1f4f12
commit eb97208ca1

View File

@ -829,7 +829,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
builder.addByte(HR_MIN, UNIT_BPM);
builder.addFloat(TRAINING_EFFECT_AEROBIC, UNIT_NONE);
if (version == 3) {
builder.addUnknown(3);
builder.addUnknown(3); // unknown byte and recovery time?
} else {
builder.addUnknown(2);
builder.addShort(RECOVERY_TIME, UNIT_HOURS);
@ -845,8 +845,8 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
builder.addUnknown(2);
builder.addShort(JUMP_RATE_MAX, UNIT_JUMPS_PER_MINUTE);
if (version == 3) {
builder.addUnknown(43);
builder.addUnknown(2); // configuredJumpsGoal, UNIT_JUMPS
builder.addUnknown(43); // probably the same as for v5 below
builder.addUnknown(2); // configuredJumpsGoal, UNIT_JUMPS, probably includes 2 more bytes
builder.addUnknown(2);
} else {
builder.addUnknown(27);