1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +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) {
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);
}