From e8e73376eac069134077a5be7978d9a3619913b3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 21 Dec 2018 16:18:25 -0800 Subject: Handle long odometer values --- src/org/traccar/protocol/GoSafeProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java index 06bd0873d..95ef18f20 100644 --- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java +++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java @@ -112,7 +112,7 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder { break; case "COT": if (index < values.length) { - position.set(Position.KEY_ODOMETER, Integer.parseInt(values[index++])); + position.set(Position.KEY_ODOMETER, Long.parseLong(values[index++])); } if (index < values.length) { String[] hours = values[index].split("-"); -- cgit v1.2.3