1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

Mi Band 8 Pro: Fix speed unit

This commit is contained in:
José Rebelo 2024-08-23 14:40:22 +01:00
parent bc2bce3719
commit 1161fc70c5

View File

@ -402,9 +402,9 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
builder.addInt(PACE_MAX, UNIT_SECONDS_PER_KM); builder.addInt(PACE_MAX, UNIT_SECONDS_PER_KM);
builder.addInt(PACE_MIN, UNIT_SECONDS_PER_KM); builder.addInt(PACE_MIN, UNIT_SECONDS_PER_KM);
if (version >= 5) { if (version >= 5) {
builder.addFloat(SPEED_AVG, UNIT_METERS_PER_SECOND); builder.addFloat(SPEED_AVG, UNIT_KMPH);
} }
builder.addFloat(SPEED_MAX, UNIT_METERS_PER_SECOND); builder.addFloat(SPEED_MAX, UNIT_KMPH);
builder.addInt(STEPS, UNIT_STEPS); builder.addInt(STEPS, UNIT_STEPS);
if (version >= 5) { if (version >= 5) {
builder.addUnknown(4); builder.addUnknown(4);