1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-26 16:26:52 +02:00

Amazfit Bip U: Fix summary data for summery version 519

For now this just skips new, previously unknown data , see #2063
This commit is contained in:
Andreas Shimokawa 2021-01-22 11:28:43 +01:00
parent 4d47d53a8f
commit 61395b210c

View File

@ -121,6 +121,10 @@ public class HuamiActivitySummaryParser implements ActivitySummaryParser {
// Bip S now has 518 so assuming 512+x, might be wrong
if (version >= 512) {
if (version == 519) {
// hack that skips data on yet unknown summary version 519 data
buffer.position(0x8c);
}
steps = buffer.getInt();
activeSeconds = buffer.getInt();
//unknown