mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-23 17:17:46 +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.addShort(XIAOMI_WORKOUT_TYPE, XIAOMI_WORKOUT_TYPE);
|
||||
builder.addUnknown(2);
|
||||
builder.addUnknown(2); // configuredTimeGoal, UNIT_SECONDS
|
||||
builder.addUnknown(2);
|
||||
builder.addUnknown(2); // configuredCaloriesGoal, UNIT_KCAL
|
||||
builder.addInt("configuredTimeGoal", UNIT_SECONDS);
|
||||
builder.addShort("configuredCaloriesGoal", UNIT_KCAL);
|
||||
} else {
|
||||
builder.addUnknown(2);
|
||||
builder.addUnknown(4); // activeSeconds again?, UNIT_SECONDS
|
||||
|
Loading…
Reference in New Issue
Block a user