1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Amazfit T-Rex: Fix activity summary parsing

This commit is contained in:
José Rebelo 2023-10-08 21:23:25 +01:00
parent df11c6e2f4
commit ad42255ea1

View File

@ -148,6 +148,9 @@ public class HuamiActivitySummaryParser implements ActivitySummaryParser {
minHR = buffer.getShort(); 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);
} else if (version == 516) {
// hack that skips data on yet unknown summary version 516 data
buffer.position(buffer.position() + 4);
} }
steps = buffer.getInt(); steps = buffer.getInt();
activeSeconds = buffer.getInt(); activeSeconds = buffer.getInt();