1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-02-18 05:17:08 +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 // Bip S now has 518 so assuming 512+x, might be wrong
if (version >= 512) { if (version >= 512) {
buffer.get(); // skip one byte
minHR = buffer.getShort();
if (version == 519) { if (version == 519) {
buffer.get(); // skip one byte
minHR = buffer.getShort();
// hack that skips data on yet unknown summary version 519 data // hack that skips data on yet unknown summary version 519 data
buffer.position(0x8c); buffer.position(0x8c);
} }