From ef3edd9932efbb165337d9a388e1cd5170f62e5f Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 23 Aug 2020 15:03:05 +0200 Subject: [PATCH] Huami: igrore min/max pace for certain workout types they all display the same bogus value --- .../devices/huami/HuamiActivitySummaryParser.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiActivitySummaryParser.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiActivitySummaryParser.java index ddbce05dc..dd7cd28ac 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiActivitySummaryParser.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiActivitySummaryParser.java @@ -281,8 +281,16 @@ public class HuamiActivitySummaryParser implements ActivitySummaryParser { addSummaryData("activeSeconds", activeSeconds, "seconds"); addSummaryData("caloriesBurnt", caloriesBurnt, "calories_unit"); addSummaryData("maxSpeed", maxSpeed, "meters_second"); - addSummaryData("minPace", minPace, "seconds_m"); - addSummaryData("maxPace", maxPace, "seconds_m"); + + if (!(activityKind == ActivityKind.TYPE_ELLIPTICAL_TRAINER || + activityKind == ActivityKind.TYPE_JUMP_ROPING || + activityKind == ActivityKind.TYPE_EXERCISE || + activityKind == ActivityKind.TYPE_YOGA || + activityKind == ActivityKind.TYPE_INDOOR_CYCLING)) { + addSummaryData("minPace", minPace, "seconds_m"); + addSummaryData("maxPace", maxPace, "seconds_m"); + } + addSummaryData("totalStride", totalStride, "meters"); addSummaryData("averageHR", averageHR, "bpm"); addSummaryData("maxHR", maxHR, "bpm");