diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-29 10:03:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-29 10:03:33 +1200 |
commit | 7df211d6c7365b494e758741f5bd5194c7eaaf39 (patch) | |
tree | 3db0f70940f29f246a9794985738624d9001835c /src/org | |
parent | a5f47492857a175548beff07cfb565129f687ae2 (diff) | |
download | trackermap-server-7df211d6c7365b494e758741f5bd5194c7eaaf39.tar.gz trackermap-server-7df211d6c7365b494e758741f5bd5194c7eaaf39.tar.bz2 trackermap-server-7df211d6c7365b494e758741f5bd5194c7eaaf39.zip |
Handle TK103 long milage
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 2 |
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()); |