mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 10:25:49 +01:00
Xiaomi: Parse configured time/calories goal for freestyle activity parser v5
They're parsed for other activities like this.
This commit is contained in:
parent
e249236873
commit
e9363ec51a
@ -291,9 +291,8 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
|||||||
builder.addUnknown(10);
|
builder.addUnknown(10);
|
||||||
builder.addShort(XIAOMI_WORKOUT_TYPE, XIAOMI_WORKOUT_TYPE);
|
builder.addShort(XIAOMI_WORKOUT_TYPE, XIAOMI_WORKOUT_TYPE);
|
||||||
builder.addUnknown(2);
|
builder.addUnknown(2);
|
||||||
builder.addUnknown(2); // configuredTimeGoal, UNIT_SECONDS
|
builder.addInt("configuredTimeGoal", UNIT_SECONDS);
|
||||||
builder.addUnknown(2);
|
builder.addShort("configuredCaloriesGoal", UNIT_KCAL);
|
||||||
builder.addUnknown(2); // configuredCaloriesGoal, UNIT_KCAL
|
|
||||||
} else {
|
} else {
|
||||||
builder.addUnknown(2);
|
builder.addUnknown(2);
|
||||||
builder.addUnknown(4); // activeSeconds again?, UNIT_SECONDS
|
builder.addUnknown(4); // activeSeconds again?, UNIT_SECONDS
|
||||||
|
Loading…
Reference in New Issue
Block a user