Mi Band 8: Improve workout parsing

This commit is contained in:
José Rebelo
2025-04-10 23:26:55 +01:00
parent 0508ef08d4
commit 900dfb03da
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@
* Huawei: Increase user ID length to 19 characters
* Huawei: Real-time heart rate mode and low/high alerts
* Lenovo Watch X (Plus): Fix language setting
* Mi Band 8: Parse elliptical and rowing workouts
* Pebble: Fix all day events timezone
* Xiaomi-protobuf: Make GPS timeout configurable
* Xiaomi-protobuf: Map some missing workout types
@@ -669,6 +669,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
switch (version) {
case 3:
case 4:
case 5:
headerSize = 4;
break;
default:
@@ -708,6 +709,7 @@ public class WorkoutSummaryParser extends XiaomiActivityParser implements Activi
case 4:
headerSize = 4;
break;
case 6:
case 7:
headerSize = 5;
break;