mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 06:22:55 +01:00
Fossil/Skagen Hybrids: Use steps instead of calories for activity intensity
This commit is contained in:
parent
539579c98e
commit
28e0914330
@ -71,7 +71,7 @@ public class HybridHRActivitySampleProvider extends AbstractSampleProvider<Hybri
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float normalizeIntensity(int rawIntensity) {
|
public float normalizeIntensity(int rawIntensity) {
|
||||||
return rawIntensity / 63f;
|
return Math.min(rawIntensity / 128f, 1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -27,7 +27,7 @@ public abstract class AbstractHybridHRActivitySample extends AbstractActivitySam
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getRawIntensity() {
|
public int getRawIntensity() {
|
||||||
return getCalories();
|
return getSteps();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user