From 3bf8fb5e9d119b2f08f67ee66746b6c5a91b9339 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 6 May 2020 14:54:52 +0200 Subject: [PATCH] Fossil Hybrid HR: use highest bit of step data also Confirmed with 144 steps per minute while running, would not have worked with previous fix --- CHANGELOG.md | 1 + .../service/devices/qhybrid/parser/ActivityFileParser.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 385dbd3a7..8212c923d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Add support for Amazfit GTR Lite (untested and incomplete) * Fossil Hybrid HR: Fix some issues with custon widgets * Fossil Hybrid HR: Allow setting alarm titles and descriptions +* Fossil Hybrid HR: Fix step data parsing * Amazfit GTS: Fix setting menu items with low MTU * Amazfit GTR: Allow setting menu itdem like GTS * ZeTime: Support setting the watch language diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/parser/ActivityFileParser.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/parser/ActivityFileParser.java index 69027da90..2a43fd2db 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/parser/ActivityFileParser.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/parser/ActivityFileParser.java @@ -115,7 +115,7 @@ public class ActivityFileParser { currentSample.variability |= (higher >> 2) & 0b111111; } }else{ - currentSample.stepCount = lower & 0b1111110; + currentSample.stepCount = lower & 0b11111110; currentSample.variability = (int) higher * (int) higher * 64; currentSample.maxVariability = 10000; }