mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-26 11:56:48 +01:00
Fossil HR: fixed bug with unknown data
This commit is contained in:
parent
1505c355ce
commit
60aaccb15f
@ -94,11 +94,15 @@ public class ActivityFileParser {
|
|||||||
break;
|
break;
|
||||||
case (byte) 0xE2:
|
case (byte) 0xE2:
|
||||||
byte type = buffer.get();
|
byte type = buffer.get();
|
||||||
int timestamp = buffer.getInt();
|
|
||||||
short duration = buffer.getShort();
|
|
||||||
short minutesOffset = buffer.getShort();
|
|
||||||
if (type == 0x04) {
|
if (type == 0x04) {
|
||||||
|
int timestamp = buffer.getInt();
|
||||||
|
short duration = buffer.getShort();
|
||||||
|
short minutesOffset = buffer.getShort();
|
||||||
this.currentTimestamp = timestamp;
|
this.currentTimestamp = timestamp;
|
||||||
|
}else if(type == 0x09){
|
||||||
|
byte[] args = new byte[2];
|
||||||
|
buffer.get(args);
|
||||||
|
// dunno what to do with that
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (byte) 0xDD:
|
case (byte) 0xDD:
|
||||||
|
Loading…
Reference in New Issue
Block a user