mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-01 03:55:47 +02:00
Huawei: Fixed min and max attitude values in workouts #4044
This commit is contained in:
parent
95fdee3cbe
commit
f983060cb2
@ -412,11 +412,12 @@ public class HuaweiWorkoutGbParser {
|
|||||||
int cyclingPowerCount = 0;
|
int cyclingPowerCount = 0;
|
||||||
int avgAltitude = 0;
|
int avgAltitude = 0;
|
||||||
int altitudeCount = 0;
|
int altitudeCount = 0;
|
||||||
int minAltitude = 0;
|
int minAltitude = Integer.MAX_VALUE;
|
||||||
int maxAltitude = 0;
|
int maxAltitude = Integer.MIN_VALUE;
|
||||||
Integer previousAlt = null;
|
Integer previousAlt = null;
|
||||||
int sumAltitudeUp = 0;
|
int sumAltitudeUp = 0;
|
||||||
int sumAltitudeDown = 0;
|
int sumAltitudeDown = 0;
|
||||||
|
|
||||||
for (HuaweiWorkoutDataSample dataSample : dataSamples) {
|
for (HuaweiWorkoutDataSample dataSample : dataSamples) {
|
||||||
if (dataSample.getSpeed() != -1) {
|
if (dataSample.getSpeed() != -1) {
|
||||||
speed += dataSample.getSpeed();
|
speed += dataSample.getSpeed();
|
||||||
|
Loading…
Reference in New Issue
Block a user