aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-12-21 16:18:25 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2018-12-21 16:20:30 -0800
commite8e73376eac069134077a5be7978d9a3619913b3 (patch)
tree42d15c5c4820149f6447008b9b57ac2e319b4957 /src
parentd0798cd3699c7ce5cc25daf65335d0670256eda0 (diff)
downloadtrackermap-server-e8e73376eac069134077a5be7978d9a3619913b3.tar.gz
trackermap-server-e8e73376eac069134077a5be7978d9a3619913b3.tar.bz2
trackermap-server-e8e73376eac069134077a5be7978d9a3619913b3.zip
Handle long odometer values
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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("-");