diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/WorkoutSummaryParser.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/WorkoutSummaryParser.java index 2607957f2..866b75c8b 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/WorkoutSummaryParser.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/WorkoutSummaryParser.java @@ -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