aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-16 16:25:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-06-16 16:25:12 +1200
commit4289c06d73eb5d07c58990386ebca9180e0e7527 (patch)
tree58101ebd66146926de5fae5aa24461c8a3dfa897 /src/org/traccar
parent5a26d7f00cdabed1518a184e3086b113a87f2819 (diff)
downloadtrackermap-server-4289c06d73eb5d07c58990386ebca9180e0e7527.tar.gz
trackermap-server-4289c06d73eb5d07c58990386ebca9180e0e7527.tar.bz2
trackermap-server-4289c06d73eb5d07c58990386ebca9180e0e7527.zip
Fix Meiligao odometer decoding issue
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index 48ee95c13..cdbf3850a 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2015 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2016 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -284,10 +284,10 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
}
if (parser.hasNext()) {
- position.set(Position.KEY_ODOMETER, parser.nextInt(16));
+ position.set(Position.KEY_ODOMETER, parser.nextLong(16));
}
if (parser.hasNext()) {
- position.set(Position.KEY_ODOMETER, parser.nextInt(16));
+ position.set(Position.KEY_ODOMETER, parser.nextLong(16));
}
if (parser.hasNext()) {