From e9363ec51a03add2f5c8a321aea2994e2769b7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 15 Dec 2024 12:27:11 +0200 Subject: [PATCH] Xiaomi: Parse configured time/calories goal for freestyle activity parser v5 They're parsed for other activities like this. --- .../devices/xiaomi/activity/impl/WorkoutSummaryParser.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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