From 56a552ac4441f361cf7090bfa5b5dad3f5a1d0b7 Mon Sep 17 00:00:00 2001 From: Sebastian Krey Date: Mon, 20 Dec 2021 11:45:15 +0100 Subject: [PATCH] Move minHR into version 519 case --- .../devices/huami/HuamiActivitySummaryParser.java | 4 ++-- 1 file changed, 2 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 9a60d8fe0..26c3f4878 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 @@ -133,9 +133,9 @@ public class HuamiActivitySummaryParser implements ActivitySummaryParser { // Bip S now has 518 so assuming 512+x, might be wrong if (version >= 512) { - buffer.get(); // skip one byte - minHR = buffer.getShort(); if (version == 519) { + buffer.get(); // skip one byte + minHR = buffer.getShort(); // hack that skips data on yet unknown summary version 519 data buffer.position(0x8c); }