1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-15 14:39:26 +01:00

Garmin protocol: fix invalid signed int base type value

This commit is contained in:
Daniele Gobbetti 2024-03-24 16:21:13 +01:00
parent e691042265
commit 4313fc833a

View File

@ -5,7 +5,7 @@ import java.nio.ByteBuffer;
//see https://github.com/dtcooper/python-fitparse/blob/master/fitparse/records.py //see https://github.com/dtcooper/python-fitparse/blob/master/fitparse/records.py
public enum BaseType { public enum BaseType {
ENUM(0x00, new BaseTypeByte(true, 0xFF)), ENUM(0x00, new BaseTypeByte(true, 0xFF)),
SINT8(0x01, new BaseTypeByte(false, 0xFF)), SINT8(0x01, new BaseTypeByte(false, 0x7F)),
UINT8(0x02, new BaseTypeByte(true, 0xFF)), UINT8(0x02, new BaseTypeByte(true, 0xFF)),
SINT16(0x83, new BaseTypeShort(false, 0x7FFF)), SINT16(0x83, new BaseTypeShort(false, 0x7FFF)),
UINT16(0x84, new BaseTypeShort(true, 0xFFFF)), UINT16(0x84, new BaseTypeShort(true, 0xFFFF)),