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(
|
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);
|
||||||
|
|
Loading…
Reference in New Issue