mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
remove unnecessary type conversion
This commit is contained in:
parent
70a8ca5067
commit
86f77e05a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user