From b1e2671bec6ddceff8193d768a98721868953dad Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Mon, 13 Jul 2015 21:55:52 +0200 Subject: [PATCH] limit maximum intensity to 180 for now... maybe make this configurable #45 --- .../gadgetbridge/activities/AbstractChartFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AbstractChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AbstractChartFragment.java index 960c9d7d..96313ce3 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AbstractChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AbstractChartFragment.java @@ -154,7 +154,8 @@ public abstract class AbstractChartFragment extends Fragment { boolean use_steps_as_movement; switch (getProvider(mGBDevice)) { case GBActivitySample.PROVIDER_MIBAND: - movement_divisor = 256.0f; + // maybe this should be configurable 256 seems way off, though. + movement_divisor = 180.0f; //256.0f; use_steps_as_movement = true; break; default: // Morpheuz