From 86f77e05a98f88c597eeb3b97db0adb1807e956e Mon Sep 17 00:00:00 2001 From: Patric Gruber Date: Fri, 31 Mar 2023 10:42:38 +0200 Subject: [PATCH] remove unnecessary type conversion --- .../service/devices/pinetime/PineTimeJFSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java index 1c0508fc1..e52324152 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java @@ -1061,7 +1061,7 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL logDebug(String.format("onReceiveHeartRateMeasurement: \nheartrate=%d", heartrate)); if (heartrate > 0) { - sample.setHeartRate((int)heartrate); + sample.setHeartRate(heartrate); sample.setTimestamp(timeStamp); // since it's a local timestamp, it should NOT be treated as Activity because it will spoil activity charts sample.setRawKind(ActivityKind.TYPE_UNKNOWN);