From d7256d172e15b43736f8847a05f4bdc284cbbd84 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 15 Nov 2016 23:23:21 +0100 Subject: [PATCH] I hate java --- .../service/devices/pebble/DatalogSessionHealthSteps.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java index 5f5af54b..4bcc6ae5 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java @@ -131,7 +131,7 @@ public class DatalogSessionHealthSteps extends DatalogSessionPebbleHealth { record.getInt(); record.getShort(); record.get(); - this.heart_rate = record.get(); + this.heart_rate = record.get() & 0xff; } }