diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/MiBandSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/MiBandSupport.java index 28cac0a7..2e8e91a7 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/MiBandSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/MiBandSupport.java @@ -918,7 +918,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport { dbHandler.addGBActivitySample( (int) (activityStruct.activityDataTimestampProgress.getTimeInMillis() / 1000), SampleProvider.PROVIDER_MIBAND, - intensity, + (short) (intensity & 0xff), (short) (steps & 0xff), category); activityStruct.activityDataTimestampProgress.add(Calendar.MINUTE, 1);