mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-23 17:17:46 +01:00
Xiaomi: Add a comment about possible interpretation of unknown bytes in v5 freestyle activity parser
They're probably the same as for v8.
This commit is contained in:
parent
e9363ec51a
commit
396aa41647
@ -274,7 +274,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
|||||||
builder.addByte(HR_MAX, UNIT_BPM);
|
builder.addByte(HR_MAX, UNIT_BPM);
|
||||||
builder.addByte(HR_MIN, UNIT_BPM);
|
builder.addByte(HR_MIN, UNIT_BPM);
|
||||||
if (version == 5) {
|
if (version == 5) {
|
||||||
builder.addUnknown(7);
|
builder.addUnknown(7); // probably training effect aerobic and recovery time?
|
||||||
} else {
|
} else {
|
||||||
builder.addUnknown(6);
|
builder.addUnknown(6);
|
||||||
builder.addFloat(TRAINING_EFFECT_AEROBIC, UNIT_NONE);
|
builder.addFloat(TRAINING_EFFECT_AEROBIC, UNIT_NONE);
|
||||||
@ -288,7 +288,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
|||||||
builder.addInt(HR_ZONE_FAT_BURN, UNIT_SECONDS);
|
builder.addInt(HR_ZONE_FAT_BURN, UNIT_SECONDS);
|
||||||
builder.addInt(HR_ZONE_WARM_UP, UNIT_SECONDS);
|
builder.addInt(HR_ZONE_WARM_UP, UNIT_SECONDS);
|
||||||
if (version == 5) {
|
if (version == 5) {
|
||||||
builder.addUnknown(10);
|
builder.addUnknown(10); // Probably the same as for v8 below?
|
||||||
builder.addShort(XIAOMI_WORKOUT_TYPE, XIAOMI_WORKOUT_TYPE);
|
builder.addShort(XIAOMI_WORKOUT_TYPE, XIAOMI_WORKOUT_TYPE);
|
||||||
builder.addUnknown(2);
|
builder.addUnknown(2);
|
||||||
builder.addInt("configuredTimeGoal", UNIT_SECONDS);
|
builder.addInt("configuredTimeGoal", UNIT_SECONDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user