mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-27 09:41:16 +02:00
Xiaomi: swim workout parser lane length fix (#3823)
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3823 Co-authored-by: Peter Kannewitz <peter.kannewitz@posteo.net> Co-committed-by: Peter Kannewitz <peter.kannewitz@posteo.net>
This commit is contained in:
parent
f85c387edf
commit
243c1ba039
@ -409,12 +409,13 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
||||
builder.addUnknown(1);
|
||||
builder.addShort(LAPS, UNIT_LAPS);
|
||||
builder.addShort(SWOLF_AVG, UNIT_NONE);
|
||||
builder.addUnknown(9);
|
||||
builder.addUnknown(2); // minSWOLF
|
||||
builder.addByte("configuredLaneLength", UNIT_METERS);
|
||||
builder.addUnknown(6);
|
||||
// builder.addInt("activeSec2", UNIT_SECONDS);
|
||||
builder.addInt("configuredTimeGoal", UNIT_SECONDS);
|
||||
builder.addShort("configuredCaloriesGoal", UNIT_KCAL);
|
||||
builder.addInt("configuredLaneLength", UNIT_CM);
|
||||
builder.addUnknown(4);
|
||||
builder.addUnknown(8);
|
||||
builder.addByte("configuredLengthsGoal", UNIT_NONE);
|
||||
builder.addUnknown(14);
|
||||
builder.addByte("vitality_gain", UNIT_NONE);
|
||||
@ -435,8 +436,8 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
|
||||
builder.addUnknown(14);
|
||||
// builder.addInt("laps2", UNIT_LAPS);
|
||||
// builder.addShort("avgSWOLF2", UNIT_NONE);
|
||||
builder.addShort("minSWOLF", UNIT_NONE); // not confirmed
|
||||
builder.addShort("maxSWOLF", UNIT_NONE); // not confirmed
|
||||
builder.addShort("minSWOLF", UNIT_NONE);
|
||||
builder.addShort("maxSWOLF", UNIT_NONE);
|
||||
// builder.addInt("totalStrokes2", UNIT_STROKES);
|
||||
|
||||
return builder.build();
|
||||
|
Loading…
Reference in New Issue
Block a user