Make intensity also always positive #91
I never experienced such values, but others apparently do...
This commit is contained in:
parent
48f5931043
commit
0bd65e050c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue