1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 21:32:57 +01:00

Fossil HR: fixed bug with unknown data

This commit is contained in:
Daniel Dakhno 2021-02-01 17:08:45 +01:00
parent 1505c355ce
commit 60aaccb15f

View File

@ -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: