Make intensity also always positive #91

I never experienced such values, but others apparently do...
This commit is contained in:
cpfeiffer 2015-08-16 23:18:32 +02:00
parent 48f5931043
commit 0bd65e050c
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
dbHandler.addGBActivitySample( dbHandler.addGBActivitySample(
(int) (activityStruct.activityDataTimestampProgress.getTimeInMillis() / 1000), (int) (activityStruct.activityDataTimestampProgress.getTimeInMillis() / 1000),
SampleProvider.PROVIDER_MIBAND, SampleProvider.PROVIDER_MIBAND,
intensity, (short) (intensity & 0xff),
(short) (steps & 0xff), (short) (steps & 0xff),
category); category);
activityStruct.activityDataTimestampProgress.add(Calendar.MINUTE, 1); activityStruct.activityDataTimestampProgress.add(Calendar.MINUTE, 1);