1
0
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:
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();
if (type == 0x04) {
int timestamp = buffer.getInt(); int timestamp = buffer.getInt();
short duration = buffer.getShort(); short duration = buffer.getShort();
short minutesOffset = buffer.getShort(); short minutesOffset = buffer.getShort();
if (type == 0x04) {
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: