aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tk103ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-29 10:03:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-29 10:03:33 +1200
commit7df211d6c7365b494e758741f5bd5194c7eaaf39 (patch)
tree3db0f70940f29f246a9794985738624d9001835c /src/org/traccar/protocol/Tk103ProtocolDecoder.java
parenta5f47492857a175548beff07cfb565129f687ae2 (diff)
downloadtrackermap-server-7df211d6c7365b494e758741f5bd5194c7eaaf39.tar.gz
trackermap-server-7df211d6c7365b494e758741f5bd5194c7eaaf39.tar.bz2
trackermap-server-7df211d6c7365b494e758741f5bd5194c7eaaf39.zip
Handle TK103 long milage
Diffstat (limited to 'src/org/traccar/protocol/Tk103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Tk103ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java
index b0186a52b..493287011 100644
--- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java
@@ -140,7 +140,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder {
// Milage
String milage = parser.group(index++);
if (milage != null) {
- extendedInfo.set("milage", Integer.parseInt(milage, 16));
+ extendedInfo.set("milage", Long.parseLong(milage, 16));
}
position.setExtendedInfo(extendedInfo.toString());