1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 01:25:50 +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:
Sebastian Dröge 2024-12-15 12:27:11 +02:00 committed by José Rebelo
parent e249236873
commit e9363ec51a

View File

@ -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