diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java index 93d12f419..e395a5945 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java @@ -376,10 +376,10 @@ public class FetchSportsSummaryOperation extends AbstractFetchOperation { addSummaryData("distanceMeters", distanceMeters, "meters"); addSummaryData("ascentMeters", ascentMeters, "meters"); addSummaryData("descentMeters", descentMeters, "meters"); - if (maxAltitude != 100000) { + if (maxAltitude != -100000) { addSummaryData("maxAltitude", maxAltitude, "meters"); } - if (minAltitude != -100000) { + if (minAltitude != 100000) { addSummaryData("minAltitude", minAltitude, "meters"); } addSummaryData("steps", steps, "steps_unit");