From 4313fc833a92bc82997098e8a026cf81f99f38e5 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sun, 24 Mar 2024 16:21:13 +0100 Subject: [PATCH] Garmin protocol: fix invalid signed int base type value --- .../service/devices/garmin/fit/baseTypes/BaseType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/fit/baseTypes/BaseType.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/fit/baseTypes/BaseType.java index dbfbc1ba6..018b4b6dd 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/fit/baseTypes/BaseType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/fit/baseTypes/BaseType.java @@ -5,7 +5,7 @@ import java.nio.ByteBuffer; //see https://github.com/dtcooper/python-fitparse/blob/master/fitparse/records.py public enum BaseType { ENUM(0x00, new BaseTypeByte(true, 0xFF)), - SINT8(0x01, new BaseTypeByte(false, 0xFF)), + SINT8(0x01, new BaseTypeByte(false, 0x7F)), UINT8(0x02, new BaseTypeByte(true, 0xFF)), SINT16(0x83, new BaseTypeShort(false, 0x7FFF)), UINT16(0x84, new BaseTypeShort(true, 0xFFFF)),