From 0cdc0777c08db54d645a3d8c5cd8ed2f9f7ee62f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 15 Dec 2024 13:56:10 +0200 Subject: [PATCH] Xiaomi: Change recoveryValue to TRAINING_EFFECT_AEROBIC in outdoor walking v2 parser That's how this value is treated elsewhere. --- .../devices/xiaomi/activity/impl/WorkoutSummaryParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ff96c76d7..587b6335b 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 @@ -479,7 +479,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi builder.addByte(HR_MAX, UNIT_BPM); builder.addByte(HR_MIN, UNIT_BPM); builder.addUnknown(20); - builder.addFloat("recoveryValue", "?"); + builder.addFloat(TRAINING_EFFECT_AEROBIC, UNIT_NONE); builder.addUnknown(9); builder.addByte(RECOVERY_TIME, UNIT_HOURS); builder.addUnknown(2);