1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 19:36:50 +01:00

Move minHR into version 519 case

This commit is contained in:
Sebastian Krey 2021-12-20 11:45:15 +01:00
parent 2af93eba03
commit 56a552ac44

View File

@ -133,9 +133,9 @@ public class HuamiActivitySummaryParser implements ActivitySummaryParser {
// Bip S now has 518 so assuming 512+x, might be wrong
if (version >= 512) {
if (version == 519) {
buffer.get(); // skip one byte
minHR = buffer.getShort();
if (version == 519) {
// hack that skips data on yet unknown summary version 519 data
buffer.position(0x8c);
}