Pass shorts along to avoid implicit signed conversion.

live-activity-data
cpfeiffer 2015-09-01 22:53:20 +02:00
parent c49c795b1d
commit c5db816cd1
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class GadgetbridgePblSupport {
byte type = (byte) ((sample & 0xe000) >>> 13);
byte intensity = (byte) ((sample & 0x1f80) >>> 7);
byte steps = (byte) (sample & 0x007f);
db.addGBActivitySample(timestamp + offset_seconds, SampleProvider.PROVIDER_PEBBLE_GADGETBRIDGE, intensity, steps, type);
db.addGBActivitySample(timestamp + offset_seconds, SampleProvider.PROVIDER_PEBBLE_GADGETBRIDGE, (short) (intensity & 0xff), (short) (steps & 0xff), type);
offset_seconds += 60;
}
} catch (GBException e) {