mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +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:
parent
8aac1f4f12
commit
eb97208ca1
@ -829,7 +829,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
|||||||
builder.addByte(HR_MIN, UNIT_BPM);
|
builder.addByte(HR_MIN, UNIT_BPM);
|
||||||
builder.addFloat(TRAINING_EFFECT_AEROBIC, UNIT_NONE);
|
builder.addFloat(TRAINING_EFFECT_AEROBIC, UNIT_NONE);
|
||||||
if (version == 3) {
|
if (version == 3) {
|
||||||
builder.addUnknown(3);
|
builder.addUnknown(3); // unknown byte and recovery time?
|
||||||
} else {
|
} else {
|
||||||
builder.addUnknown(2);
|
builder.addUnknown(2);
|
||||||
builder.addShort(RECOVERY_TIME, UNIT_HOURS);
|
builder.addShort(RECOVERY_TIME, UNIT_HOURS);
|
||||||
@ -845,8 +845,8 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
|||||||
builder.addUnknown(2);
|
builder.addUnknown(2);
|
||||||
builder.addShort(JUMP_RATE_MAX, UNIT_JUMPS_PER_MINUTE);
|
builder.addShort(JUMP_RATE_MAX, UNIT_JUMPS_PER_MINUTE);
|
||||||
if (version == 3) {
|
if (version == 3) {
|
||||||
builder.addUnknown(43);
|
builder.addUnknown(43); // probably the same as for v5 below
|
||||||
builder.addUnknown(2); // configuredJumpsGoal, UNIT_JUMPS
|
builder.addUnknown(2); // configuredJumpsGoal, UNIT_JUMPS, probably includes 2 more bytes
|
||||||
builder.addUnknown(2);
|
builder.addUnknown(2);
|
||||||
} else {
|
} else {
|
||||||
builder.addUnknown(27);
|
builder.addUnknown(27);
|
||||||
|
Loading…
Reference in New Issue
Block a user