mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Fossil Hybrid HR: Try to fix step count
This commit is contained in:
parent
82611d7a0d
commit
748a62c2bd
@ -109,13 +109,13 @@ public class ActivityFileParser {
|
||||
if((lower & 0b10000000) == 0b10000000){
|
||||
int factor = (lower >> 4) & 0b111;
|
||||
currentSample.variability = 512 + factor * 64 + (higher >> 2 & 0b111111);
|
||||
currentSample.stepCount = lower & 0b1110;
|
||||
}else {
|
||||
currentSample.variability = lower & 0b01110000;
|
||||
currentSample.variability <<= 2;
|
||||
currentSample.variability |= (higher >> 2) & 0b111111;
|
||||
}
|
||||
}else{
|
||||
currentSample.stepCount = lower & 0b1111110;
|
||||
currentSample.variability = (int) higher * (int) higher * 64;
|
||||
currentSample.maxVariability = 10000;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user